1 parent 53711d5 commit c7b80cfCopy full SHA for c7b80cf
1 file changed
lib/webworker/WebWorkerMainTemplatePlugin.js
@@ -48,7 +48,7 @@ class WebWorkerMainTemplatePlugin {
48
]);
49
});
50
mainTemplate.plugin("bootstrap", function(source, chunk, hash) {
51
- if(chunk.getChunks().size > 0) {
+ if(chunk.getNumberOfChunks() > 0) {
52
const chunkCallbackName = this.outputOptions.chunkCallbackName || Template.toIdentifier("webpackChunk" + (this.outputOptions.library || ""));
53
return this.asString([
54
source,
0 commit comments