Skip to content

Commit 7ac2535

Browse files
authored
fix: support polyfill import paths containing an escaping char (e.g. '\') (#10859)
1 parent 2d17aa2 commit 7ac2535

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/plugin-legacy/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ function polyfillsPlugin(
720720
load(id) {
721721
if (id === polyfillId) {
722722
return (
723-
[...imports].map((i) => `import "${i}";`).join('') +
723+
[...imports].map((i) => `import ${JSON.stringify(i)};`).join('') +
724724
(excludeSystemJS ? '' : `import "systemjs/dist/s.min.js";`)
725725
)
726726
}

0 commit comments

Comments
 (0)