diff --git a/lib/utils/webpack.config.js b/lib/utils/webpack.config.js index 0f836f8d0b6a8..caf6b22e568cd 100644 --- a/lib/utils/webpack.config.js +++ b/lib/utils/webpack.config.js @@ -155,7 +155,14 @@ module.exports = (program, directory, stage, webpackPort = 1500, routes = []) => exclude: /(node_modules|bower_components)/, loader: 'babel', query: { - plugins: ['add-module-exports'], + presets: [ + 'babel-preset-react', + 'babel-preset-es2015', + 'babel-preset-stage-0', + ].map(require.resolve), + plugins: [ + 'babel-plugin-add-module-exports', + ].map(require.resolve), }, }) config.loader('coffee', {