diff --git a/packages/babel-preset-react-app/create.js b/packages/babel-preset-react-app/create.js index 473d0969f4..7aacc8a23f 100644 --- a/packages/babel-preset-react-app/create.js +++ b/packages/babel-preset-react-app/create.js @@ -83,8 +83,6 @@ module.exports = function (api, opts, env) { useBuiltIns: 'entry', // Set the corejs version we are using to avoid warnings in console corejs: 3, - // Do not transform modules to CJS - modules: false, // Exclude transforms that make all code slower exclude: ['transform-typeof-symbol'], }, diff --git a/packages/babel-preset-react-app/dependencies.js b/packages/babel-preset-react-app/dependencies.js index 8c3256f15e..acbd65aea1 100644 --- a/packages/babel-preset-react-app/dependencies.js +++ b/packages/babel-preset-react-app/dependencies.js @@ -74,8 +74,6 @@ module.exports = function (api, opts) { targets: { node: 'current', }, - // Do not transform modules to CJS - modules: false, // Exclude transforms that make all code slower exclude: ['transform-typeof-symbol'], }, @@ -89,8 +87,6 @@ module.exports = function (api, opts) { // Set the corejs version we are using to avoid warnings in console // This will need to change once we upgrade to corejs@3 corejs: 3, - // Do not transform modules to CJS - modules: false, // Exclude transforms that make all code slower exclude: ['transform-typeof-symbol'], },