diff --git a/client/configuration/babel/babel.prod.js b/client/configuration/babel/babel.prod.js index d185e68b..49bb57d2 100644 --- a/client/configuration/babel/babel.prod.js +++ b/client/configuration/babel/babel.prod.js @@ -3,8 +3,7 @@ module.exports = { presets: [["env", { loose: true, modules: false }], "stage-0", "react"], plugins: [ "babel-plugin-transform-react-constant-elements", - "babel-plugin-transform-decorators-legacy" + "babel-plugin-transform-decorators-legacy", + "babel-plugin-transform-runtime" ] - .map(require.resolve) - .concat([[require.resolve("babel-plugin-transform-runtime")]]) }; diff --git a/client/configuration/webpack/webpack.config.dev.js b/client/configuration/webpack/webpack.config.dev.js index c05dba91..37dfac21 100644 --- a/client/configuration/webpack/webpack.config.dev.js +++ b/client/configuration/webpack/webpack.config.dev.js @@ -32,7 +32,7 @@ module.exports = { test: /\.js$/, include: src, loader: "babel-loader", - query: require("../babel/babel.dev") + options: require("../babel/babel.dev") }, { test: /\.css$/, diff --git a/client/configuration/webpack/webpack.config.prod.js b/client/configuration/webpack/webpack.config.prod.js index d519dfdc..c9714461 100644 --- a/client/configuration/webpack/webpack.config.prod.js +++ b/client/configuration/webpack/webpack.config.prod.js @@ -33,7 +33,8 @@ module.exports = { test: /\.js$/, include: src, loader: "babel-loader", - query: require("../babel/babel.prod") + // query: require("../babel/babel.prod") + options: require("../babel/babel.prod") }, { test: /\.css$/,