diff --git a/webpack.config.js b/webpack.config.js index 30dbc63fc..81606dc9b 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -7,6 +7,7 @@ module.exports = { devtool: 'source-map', entry: [ 'webpack-hot-middleware/client', + 'babel-core/polyfill', './index' ], output: { diff --git a/webpack.config.production.js b/webpack.config.production.js index 91ef8a84d..09f83d4eb 100644 --- a/webpack.config.production.js +++ b/webpack.config.production.js @@ -4,7 +4,10 @@ var path = require("path"); var webpack = require("webpack"); module.exports = { - entry: "./index", + entry: [ + "babel-core/polyfill", + "./index" + ], output: { path: path.join(__dirname, "dist"), filename: "bundle.js",