Skip to content

Commit

Permalink
fix: use default modules option from preset-env
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Jul 27, 2020
1 parent a01b1c5 commit 419e0ee
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 419e0ee

Please sign in to comment.