Skip to content

Commit ba610cc

Browse files
authored
Merge pull request webpack#5231 from webpack/bugfix/concat-hash
add hash method to concatenated module
2 parents 3dc0d4e + cd7ec76 commit ba610cc

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

‎lib/optimize/ConcatenatedModule.js‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,13 @@ class ConcatenatedModule extends Module {
451451
return name;
452452
}
453453

454+
updateHash(hash) {
455+
for(const m of this.modules) {
456+
m.updateHash(hash);
457+
}
458+
super.updateHash(hash);
459+
}
460+
454461
}
455462

456463
class HarmonyImportSpecifierDependencyConcatenatedTemplate {

‎test/statsCases/scope-hoisting-multi/expected.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Hash: 731069e082cf620521ce1e4286719458d8076cfc
1+
Hash: 731069e082cf620521ce637b388d1abe7f9228e5
22
Child
33
Hash: 731069e082cf620521ce
44
Time: Xms
@@ -14,7 +14,7 @@ Child
1414
[9] (webpack)/test/statsCases/scope-hoisting-multi/second.js 177 bytes {4} [built]
1515
[10] (webpack)/test/statsCases/scope-hoisting-multi/lazy_second.js 55 bytes {1} [built]
1616
Child
17-
Hash: 1e4286719458d8076cfc
17+
Hash: 637b388d1abe7f9228e5
1818
Time: Xms
1919
[0] (webpack)/test/statsCases/scope-hoisting-multi/common_lazy_shared.js 25 bytes {0} {1} {2} [built]
2020
[1] (webpack)/test/statsCases/scope-hoisting-multi/vendor.js 25 bytes {5} [built]

0 commit comments

Comments
 (0)