diff --git a/package.json b/package.json index bb1843f6ce1e9..e4ef20efca3fb 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,6 @@ "@bigfunger/jsondiffpatch": "0.1.38-webpack", "@elastic/datemath": "2.3.0", "@elastic/httpolyglot": "0.1.2-elasticpatch1", - "@elastic/kibana-ui-framework": "0.0.13", "@elastic/webpack-directory-name-as-main": "2.0.2", "@spalger/filesaver": "1.1.2", "@spalger/leaflet-draw": "0.2.3", diff --git a/ui_framework/doc_site/src/index.js b/ui_framework/doc_site/src/index.js index 24e1919048395..ca17c966eacd7 100644 --- a/ui_framework/doc_site/src/index.js +++ b/ui_framework/doc_site/src/index.js @@ -1,6 +1,6 @@ require('./main.scss'); -import 'babel-core/polyfill'; +import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; diff --git a/ui_framework/doc_site/webpack.config.js b/ui_framework/doc_site/webpack.config.js index 05ab102f21058..a337e840506d6 100644 --- a/ui_framework/doc_site/webpack.config.js +++ b/ui_framework/doc_site/webpack.config.js @@ -22,7 +22,10 @@ module.exports = { loaders: [{ test: /\.jsx?$/, loader: 'babel', - exclude: /node_modules/ + exclude: /node_modules/, + query: { + presets: ['es2015', 'react'], + }, }, { test: /\.scss$/, loaders: ['style', 'css', 'postcss', 'sass'],