Skip to content

Commit 0aa9aa6

Browse files
committed
webpack#6971: Escape chunk names for webworkers
1 parent c1a3676 commit 0aa9aa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/webworker/WebWorkerMainTemplatePlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class WebWorkerMainTemplatePlugin {
2424
"// object to store loaded chunks",
2525
'// "1" means "already loaded"',
2626
"var installedChunks = {",
27-
Template.indent(chunk.ids.map(id => `${id}: 1`).join(",\n")),
27+
Template.indent(chunk.ids.map(id => `${JSON.stringify(id)}: 1`).join(",\n")),
2828
"};"
2929
]);
3030
}

0 commit comments

Comments
 (0)