Skip to content

Commit

Permalink
fix: use default modules option from preset-env (facebook#9374)
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung authored and abhiisheek committed May 24, 2023
1 parent b53e9a0 commit f4f27e2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions packages/babel-preset-react-app/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
},
Expand Down
4 changes: 0 additions & 4 deletions packages/babel-preset-react-app/dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
},
Expand All @@ -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'],
},
Expand Down

0 comments on commit f4f27e2

Please sign in to comment.