Skip to content

Commit

Permalink
fix: support polyfill import paths containing an escaping char (e.g. …
Browse files Browse the repository at this point in the history
…'\') (#10859)
  • Loading branch information
Tal500 authored Nov 12, 2022
1 parent 2d17aa2 commit 7ac2535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-legacy/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ function polyfillsPlugin(
load(id) {
if (id === polyfillId) {
return (
[...imports].map((i) => `import "${i}";`).join('') +
[...imports].map((i) => `import ${JSON.stringify(i)};`).join('') +
(excludeSystemJS ? '' : `import "systemjs/dist/s.min.js";`)
)
}
Expand Down

0 comments on commit 7ac2535

Please sign in to comment.