From 519a47c584b64270734bdfa9fc115f16c2bac1d5 Mon Sep 17 00:00:00 2001 From: Spencer Date: Tue, 9 May 2017 18:50:19 -0700 Subject: [PATCH] [uiFramework/docSite] reuse kibana babel config (#11688) (cherry picked from commit ff870986b33fd0b7c2d42ec3e0f7e867aa9991b5) --- package.json | 1 - ui_framework/.babelrc | 3 --- ui_framework/doc_site/webpack.config.js | 4 ++-- 3 files changed, 2 insertions(+), 6 deletions(-) delete mode 100644 ui_framework/.babelrc diff --git a/package.json b/package.json index d67107ad05ce9..fac196ac92180 100644 --- a/package.json +++ b/package.json @@ -204,7 +204,6 @@ "devDependencies": { "@elastic/eslint-config-kibana": "0.5.0", "@elastic/eslint-plugin-kibana-custom": "1.0.3", - "@spalger/babel-presets": "0.3.2", "angular-mocks": "1.4.7", "auto-release-sinon": "1.0.3", "babel-eslint": "6.1.2", diff --git a/ui_framework/.babelrc b/ui_framework/.babelrc deleted file mode 100644 index 9f3449c2e3053..0000000000000 --- a/ui_framework/.babelrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "presets": ["react", "@spalger/babel-presets"] -} diff --git a/ui_framework/doc_site/webpack.config.js b/ui_framework/doc_site/webpack.config.js index 7b956c4b5de27..dc0c471d0a825 100644 --- a/ui_framework/doc_site/webpack.config.js +++ b/ui_framework/doc_site/webpack.config.js @@ -1,5 +1,5 @@ const path = require('path'); - +const babelPreset = require('../../src/optimize/babel/helpers').webpackPreset; module.exports = { devtool: 'source-map', @@ -34,7 +34,7 @@ module.exports = { loader: 'babel', exclude: /node_modules/, query: { - presets: ['es2015', 'react'], + presets: [babelPreset], }, }, { test: /\.scss$/,