diff --git a/webpack.config.js b/webpack.config.js index 6885a3e..9790223 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -19,7 +19,7 @@ module.exports = { { test: /\.(js|jsx)$/, include: path.join(__dirname, 'src'), - loaders: ['react-hot', 'babel', 'eslint'] + loaders: ['react-hot', 'babel?optional[]=runtime', 'eslint'] }, { test: /\.scss$/, diff --git a/webpack.production.config.js b/webpack.production.config.js index 1bbf98c..8a0ff7f 100644 --- a/webpack.production.config.js +++ b/webpack.production.config.js @@ -16,7 +16,7 @@ module.exports = { { test: /\.(js|jsx)$/, include: path.join(__dirname, 'src'), - loaders: ['babel'] + loaders: ['babel?optional[]=runtime'] }, { test: /\.scss$/,