From f428c9e31bbd6b06a9e3238954d778a127cda5e7 Mon Sep 17 00:00:00 2001 From: Elastic Jasper Date: Mon, 13 Feb 2017 13:42:37 -0500 Subject: [PATCH] Remove dependency on kibana-ui-framework repo. Backports PR #10281 **Commit 1:** Remove dependency on kibana-ui-framework repo. * Original sha: d81e76809c6248b4e2e479681a2bce6e2a66b306 * Authored by CJ Cenizal on 2017-02-10T00:17:00Z --- 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 a3e21e29ea220..97ef3bdc126b5 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 1876f289254c0..cd3d156fe7491 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'],