Skip to content

Commit 054ba79

Browse files
committed
Turn off use built ins
1 parent 0da9f2d commit 054ba79

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,9 @@ module.exports = function(api, opts, env) {
6161
// Users cannot override this behavior because this Babel
6262
// configuration is highly tuned for ES5 support
6363
ignoreBrowserslistConfig: true,
64-
// `entry` transforms `@babel/polyfill` into individual requires for
65-
// the targeted browsers. This is safer than `usage` which performs
66-
// static code analysis to determine what's required.
67-
// This is probably a fine default to help trim down bundles when
68-
// end-users inevitably import '@babel/polyfill'.
69-
useBuiltIns: 'entry',
64+
// If users import all core-js they're probably not concerned with
65+
// bundle size. We shouldn't rely on magic to try and shrink it.
66+
useBuiltIns: false,
7067
// Do not transform modules to CJS
7168
modules: false,
7269
},

0 commit comments

Comments
 (0)