Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f86cf44

Browse files
authored
fix: use default modules option from preset-env (#9374)
1 parent 3cf2b06 commit f86cf44

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

packages/babel-preset-react-app/create.js

-2
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@ module.exports = function (api, opts, env) {
8383
useBuiltIns: 'entry',
8484
// Set the corejs version we are using to avoid warnings in console
8585
corejs: 3,
86-
// Do not transform modules to CJS
87-
modules: false,
8886
// Exclude transforms that make all code slower
8987
exclude: ['transform-typeof-symbol'],
9088
},

packages/babel-preset-react-app/dependencies.js

-4
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ module.exports = function (api, opts) {
7474
targets: {
7575
node: 'current',
7676
},
77-
// Do not transform modules to CJS
78-
modules: false,
7977
// Exclude transforms that make all code slower
8078
exclude: ['transform-typeof-symbol'],
8179
},
@@ -89,8 +87,6 @@ module.exports = function (api, opts) {
8987
// Set the corejs version we are using to avoid warnings in console
9088
// This will need to change once we upgrade to corejs@3
9189
corejs: 3,
92-
// Do not transform modules to CJS
93-
modules: false,
9490
// Exclude transforms that make all code slower
9591
exclude: ['transform-typeof-symbol'],
9692
},

0 commit comments

Comments
 (0)