Skip to content

Commit

Permalink
fix(legacy): add guard to modern polyfill chunk
Browse files Browse the repository at this point in the history
  • Loading branch information
lsdsjy authored Jul 5, 2023
1 parent 7ef2472 commit 18622b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/plugin-legacy/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,7 @@ function polyfillsPlugin(
load(id) {
if (id === polyfillId) {
return (
modernChunkLegacyGuard +
[...imports].map((i) => `import ${JSON.stringify(i)};`).join('') +
(excludeSystemJS ? '' : `import "systemjs/dist/s.min.js";`)
)
Expand Down

0 comments on commit 18622b1

Please sign in to comment.