Skip to content

Commit a3977a3

Browse files
silverwindzeripath
authored andcommitted
fix webpack polyfills (#9735)
webpack polyfills did not work because useBuiltIns: 'entry' expects a explicit core-js import. Changed it to 'usage' which does not require these explicit imports and polyfills based on browserslist. As a result, the built index.js now went from 128kB to 192kB. Ref: https://babeljs.io/docs/en/babel-preset-env#usebuiltins Co-authored-by: zeripath <[email protected]>
1 parent 74e35aa commit a3977a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module.exports = {
3636
[
3737
'@babel/preset-env',
3838
{
39-
useBuiltIns: 'entry',
39+
useBuiltIns: 'usage',
4040
corejs: 3,
4141
}
4242
]

0 commit comments

Comments
 (0)