diff --git a/.babelrc b/.babelrc index d7d00389e..ddea122c0 100644 --- a/.babelrc +++ b/.babelrc @@ -1,9 +1,12 @@ { "presets": ["react", "es2015", "stage-0"], - "plugins": ["transform-decorators-legacy"], + "plugins": [ + "lodash", + "transform-decorators-legacy" + ], "env": { "development": { "presets": ["react-hmre"] } } -} \ No newline at end of file +} diff --git a/package.json b/package.json index 7632c2eab..aca31a2b4 100644 --- a/package.json +++ b/package.json @@ -28,8 +28,9 @@ "babel-core": "6.10.4", "babel-eslint": "6.1.0", "babel-loader": "6.2.1", + "babel-plugin-lodash": "^3.2.6", "babel-plugin-transform-decorators-legacy": "1.3.4", - "babel-polyfill": "6.7.4", + "babel-polyfill": "^6.7.4", "babel-preset-es2015": "6.3.13", "babel-preset-react": "6.3.13", "babel-preset-react-hmre": "1.0.1", diff --git a/webpack.config.prod.js b/webpack.config.prod.js index 3753223d6..805e9472e 100644 --- a/webpack.config.prod.js +++ b/webpack.config.prod.js @@ -9,6 +9,7 @@ productionWebpackConfig = Object.assign(commonWebpackConfig, { cache: true, devtool: 'cheap-module-source-map', entry: [ + 'babel-polyfill', 'babel-regenerator-runtime', './src/index', ],