Skip to content

Commit c7b80cf

Browse files
committed
bugfix
1 parent 53711d5 commit c7b80cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/webworker/WebWorkerMainTemplatePlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class WebWorkerMainTemplatePlugin {
4848
]);
4949
});
5050
mainTemplate.plugin("bootstrap", function(source, chunk, hash) {
51-
if(chunk.getChunks().size > 0) {
51+
if(chunk.getNumberOfChunks() > 0) {
5252
const chunkCallbackName = this.outputOptions.chunkCallbackName || Template.toIdentifier("webpackChunk" + (this.outputOptions.library || ""));
5353
return this.asString([
5454
source,

0 commit comments

Comments
 (0)