You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(isEnvProduction||isEnvDevelopment)&&[// Latest stable ECMAScript featuresrequire('@babel/preset-env').default,{// Allow importing core-js in entrypoint and use browserlist to select polyfillsuseBuiltIns: 'entry',// Set the corejs version we are using to avoid warnings in consolecorejs: 3,// Exclude transforms that make all code slowerexclude: ['transform-typeof-symbol'],},],
Using useBuiltIns: 'usage' can import necessary polyfill only and make bundle size smaller. Why babel-preset-react-app still choose using entry instead of usage?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
From the babel-preset-react-app config:
Using
useBuiltIns: 'usage'
can import necessary polyfill only and make bundle size smaller. Why babel-preset-react-app still choose usingentry
instead ofusage
?Beta Was this translation helpful? Give feedback.
All reactions