diff --git a/package.json b/package.json index 14b1eca0d..40ef3d434 100644 --- a/package.json +++ b/package.json @@ -36,6 +36,7 @@ "babel-plugin-react-require": "^3.0.0", "babel-preset-es2015": "^6.18.0", "babel-preset-react": "^6.16.0", + "babel-polyfill": "^6.20.0", "eslint": "^3.10.2", "eslint-config-airbnb": "^13.0.0", "eslint-loader": "^1.6.1", diff --git a/webpack.config.js b/webpack.config.js index 2e479d119..34b4bdffc 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -6,7 +6,7 @@ const PATHS = { }; module.exports = { - entry: "./js/main.js", + entry: ['babel-polyfill', './js/main.js'], output: { path: path.join(PATHS.dist, 'js'), publicPath: '/js/',