mirror of https://github.com/webpack/webpack.git
Merge pull request #6973 from haggholm/master
#6971: Escape chunk names for webworkers
This commit is contained in:
commit
510b68a828
|
|
@ -24,7 +24,9 @@ class WebWorkerMainTemplatePlugin {
|
|||
"// object to store loaded chunks",
|
||||
'// "1" means "already loaded"',
|
||||
"var installedChunks = {",
|
||||
Template.indent(chunk.ids.map(id => `${id}: 1`).join(",\n")),
|
||||
Template.indent(
|
||||
chunk.ids.map(id => `${JSON.stringify(id)}: 1`).join(",\n")
|
||||
),
|
||||
"};"
|
||||
]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue