From 2563d88969b423ec1f3010cf3c3fdd7e7b0672e5 Mon Sep 17 00:00:00 2001 From: CJ Cenizal Date: Mon, 13 Feb 2017 10:42:16 -0800 Subject: [PATCH] Remove dependency on kibana-ui-framework repo. (#10281) --- package.json | 1 - ui_framework/doc_site/src/index.js | 2 +- ui_framework/doc_site/webpack.config.js | 5 ++++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 88d37b82cd95a..2f31667cf0b3f 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'],