Skip to content

Commit 913b18b

Browse files
fix: update hashes for all library names
1 parent 369efb3 commit 913b18b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎lib/UmdMainTemplatePlugin.js‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,15 @@ class UmdMainTemplatePlugin {
174174
}.bind(this));
175175
mainTemplate.plugin("global-hash-paths", function(paths) {
176176
if(this.names.root) paths = paths.concat(this.names.root);
177+
if(this.names.amd) paths = paths.concat(this.names.amd);
178+
if(this.names.commonjs) paths = paths.concat(this.names.commonjs);
177179
return paths;
178180
}.bind(this));
179181
mainTemplate.plugin("hash", function(hash) {
180182
hash.update("umd");
181183
hash.update(`${this.names.root}`);
184+
hash.update(`${this.names.amd}`);
185+
hash.update(`${this.names.commonjs}`);
182186
}.bind(this));
183187
}
184188
}

0 commit comments

Comments
 (0)