From 054ba79ff6bc34e30e1441b237c6ec26f6a9b430 Mon Sep 17 00:00:00 2001 From: Joe Haddad Date: Thu, 20 Sep 2018 11:22:59 -0400 Subject: [PATCH] Turn off use built ins --- packages/babel-preset-react-app/create.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/babel-preset-react-app/create.js b/packages/babel-preset-react-app/create.js index c300019b..5b46dc0a 100644 --- a/packages/babel-preset-react-app/create.js +++ b/packages/babel-preset-react-app/create.js @@ -61,12 +61,9 @@ module.exports = function(api, opts, env) { // Users cannot override this behavior because this Babel // configuration is highly tuned for ES5 support ignoreBrowserslistConfig: true, - // `entry` transforms `@babel/polyfill` into individual requires for - // the targeted browsers. This is safer than `usage` which performs - // static code analysis to determine what's required. - // This is probably a fine default to help trim down bundles when - // end-users inevitably import '@babel/polyfill'. - useBuiltIns: 'entry', + // If users import all core-js they're probably not concerned with + // bundle size. We shouldn't rely on magic to try and shrink it. + useBuiltIns: false, // Do not transform modules to CJS modules: false, },