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 justinsilvestre committed Oct 30, 2020
1 parent 8666b5a commit e1716cd
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
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
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 e1716cd

Please sign in to comment.