diff --git a/babel.config.js b/babel.config.js index 2d79e23a..9746f6a9 100644 --- a/babel.config.js +++ b/babel.config.js @@ -22,6 +22,5 @@ module.exports = { plugins: [ require('@babel/plugin-proposal-class-properties'), require('@babel/plugin-proposal-object-rest-spread'), - ["@babel/transform-runtime"] ], }; diff --git a/index.js b/index.js index e17bd054..ca35324f 100644 --- a/index.js +++ b/index.js @@ -13,6 +13,7 @@ * permissions and limitations under the License. */ +import 'babel-polyfill'; import { resolve } from 'path'; import { existsSync } from 'fs'; import { ADPlugin } from './server/plugin'; @@ -24,7 +25,8 @@ export default kibana => { uiExports: { app: { title: 'Open Distro for Elasticsearch Anomaly Detection Kibana plugin', - description: 'Open Distro for Elasticsearch Anomaly Detection Kibana plugin', + description: + 'Open Distro for Elasticsearch Anomaly Detection Kibana plugin', main: 'plugins/opendistro-anomaly-detection/app', icon: 'plugins/opendistro-anomaly-detection/images/anomaly_detection_icon.svg', diff --git a/package.json b/package.json index 9523b762..2bba0aca 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,6 @@ "devDependencies": { "@babel/plugin-proposal-class-properties": "^7.5.5", "@babel/plugin-proposal-object-rest-spread": "^7.5.5", - "@babel/plugin-transform-runtime": "^7.8.3", "@babel/preset-env": "^7.5.5", "@babel/preset-react": "^7.0.0", "@babel/preset-typescript": "^7.3.3", @@ -75,6 +74,7 @@ "formik": "^1.5.8", "query-string": "^6.8.2", "react-redux": "^7.1.0", - "reselect": "^4.0.0" + "reselect": "^4.0.0", + "babel-polyfill": "^6.26.0" } }