Skip to content

Commit e2c0866

Browse files
committed
chunk ids are unique now, so this is no longer needed
1 parent 58424e0 commit e2c0866

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎lib/Compilation.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -592,12 +592,12 @@ Compilation.prototype.createChunkAssets = function createChunkAssets() {
592592
chunk.initial ? filename :
593593
chunkFilename;
594594
if(chunk.entry) {
595-
if(this.cache && this.cache["c" + chunk.id + chunk.name] && this.cache["c" + chunk.id + chunk.name].hash == this.fullHash) {
596-
source = this.cache["c" + chunk.id + chunk.name].source;
595+
if(this.cache && this.cache["c" + chunk.id] && this.cache["c" + chunk.id].hash == this.fullHash) {
596+
source = this.cache["c" + chunk.id].source;
597597
} else {
598598
source = this.mainTemplate.render(this.hash, chunk, this.moduleTemplate, this.dependencyTemplates);
599599
if(this.cache) {
600-
this.cache["c" + chunk.id + chunk.name] = {
600+
this.cache["c" + chunk.id] = {
601601
hash: this.fullHash,
602602
source: source
603603
}

0 commit comments

Comments
 (0)