diff --git a/config/babel.config.js b/config/babel.config.js index 2e0ec0b5c7..16d0460a9b 100644 --- a/config/babel.config.js +++ b/config/babel.config.js @@ -28,8 +28,8 @@ module.exports = function (api) { const plugins = [ ['relay', { compat: true, schema: 'schema.json' }], 'babel-plugin-optimize-clsx', - ['@babel/plugin-proposal-class-properties', { loose: true }], - ['@babel/plugin-proposal-object-rest-spread', { loose: true }], + '@babel/plugin-proposal-class-properties', + '@babel/plugin-proposal-object-rest-spread', [ '@babel/plugin-transform-runtime', { diff --git a/webpack.config.babel.js b/webpack.config.babel.js index 96d9a7d340..17cb753462 100644 --- a/webpack.config.babel.js +++ b/webpack.config.babel.js @@ -178,8 +178,6 @@ module.exports = { [ '@babel/preset-env', { - // loose is needed by older Androids < 4.3 and IE10 - loose: true, modules: false, }, ], @@ -199,7 +197,7 @@ module.exports = { }, ], '@babel/plugin-syntax-dynamic-import', - ['@babel/plugin-proposal-class-properties', { loose: true }], + '@babel/plugin-proposal-class-properties', '@babel/plugin-proposal-json-strings', ], },