diff --git a/.babelrc.js b/.babelrc.js index 1c3859cc..1d3844c7 100644 --- a/.babelrc.js +++ b/.babelrc.js @@ -1,9 +1,7 @@ const prod = process.env.NODE_ENV === 'production'; module.exports = { - plugins: ['emotion', prod && 'transform-react-remove-prop-types'].filter( - Boolean - ), + plugins: ['emotion'], presets: [ [ 'env', diff --git a/webpack.config.babel.js b/webpack.config.babel.js index 2e8dc13e..552f6407 100644 --- a/webpack.config.babel.js +++ b/webpack.config.babel.js @@ -17,7 +17,7 @@ export default { loader: 'babel-loader', options: { babelrc: false, - plugins: ['emotion'], + plugins: ['emotion', 'transform-react-remove-prop-types'], presets: [ [ 'env',