Skip to content

Commit 0811db4

Browse files
author
Franck Freiburger
committed
wip(build): use usage-global for polyfill-corejs3 and polyfill-regenerator
1 parent 8419e85 commit 0811db4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build/webpack.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,15 +424,17 @@ ${ pkg.name } v${ pkg.version } for vue${ vueTarget }
424424

425425
[
426426
'polyfill-corejs3', {
427+
// doc: https://github.com/babel/babel-polyfills/blob/main/docs/usage.md#method
428+
427429
// Allow global scope pollution with polyfills required by actualTargetsBrowsers.
428430
// This is necessary because the code compiled by vue3-sfc-loader also require these polyfills.
429-
'method': 'entry-global'
431+
'method': 'usage-global',
430432
}
431433
],
432434

433435
[
434436
'polyfill-regenerator', {
435-
'method': 'usage-pure'
437+
'method': 'usage-global'
436438
}
437439
]
438440
] : [],

0 commit comments

Comments
 (0)