Skip to content

Commit aa212a6

Browse files
committed
Merge branch 'master' into next
# Conflicts: # lib/optimize/ConcatenatedModule.js
2 parents 3e58966 + 2525466 commit aa212a6

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

lib/optimize/ConcatenatedModule.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -321,12 +321,13 @@ class ConcatenatedModule extends Module {
321321
}
322322

323323
_createIdentifier() {
324-
const orderedConcatenationListIdentifiers = this._orderedConcatenationList.map(info => {
325-
switch(info.type) {
326-
case "concatenated":
327-
return info.module.identifier();
324+
let orderedConcatenationListIdentifiers = "";
325+
for(let i = 0; i < this._orderedConcatenationList.length; i++) {
326+
if(this._orderedConcatenationList[i].type === "concatenated") {
327+
orderedConcatenationListIdentifiers += this._orderedConcatenationList[i].module.identifier();
328+
orderedConcatenationListIdentifiers += " ";
328329
}
329-
}).filter(Boolean).join(" ");
330+
}
330331
const hash = createHash("md5");
331332
hash.update(orderedConcatenationListIdentifiers);
332333
return this.rootModule.identifier() + " " + hash.digest("hex");

0 commit comments

Comments
 (0)