From 4e80ed6c5d9ffb5d554b53d3750289727521a0fb Mon Sep 17 00:00:00 2001 From: bkmartinjr Date: Sun, 12 Aug 2018 14:21:05 -0700 Subject: [PATCH] clean up babel config - remove deprecated options and extraneous package loads --- client/configuration/babel/babel.prod.js | 5 ++--- client/configuration/webpack/webpack.config.dev.js | 2 +- client/configuration/webpack/webpack.config.prod.js | 3 ++- 3 files changed, 5 insertions(+), 5 deletions(-) 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$/,