Skip to content

Commit dc7ebeb

Browse files
committed
Fix webpack#6243: Don't include initial chunks in chunkhash computation
1 parent b545b51 commit dc7ebeb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/TemplatedPathPlugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ class TemplatedPathPlugin {
105105
const outputOptions = this.outputOptions;
106106
const chunkFilename = outputOptions.chunkFilename || outputOptions.filename;
107107
if(REGEXP_CHUNKHASH_FOR_TEST.test(chunkFilename))
108-
hash.update(JSON.stringify(chunk.getChunkMaps(true, true).hash));
108+
hash.update(JSON.stringify(chunk.getChunkMaps(false, true).hash));
109109
if(REGEXP_NAME_FOR_TEST.test(chunkFilename))
110-
hash.update(JSON.stringify(chunk.getChunkMaps(true, true).name));
110+
hash.update(JSON.stringify(chunk.getChunkMaps(false, true).name));
111111
});
112112
});
113113
}

0 commit comments

Comments
 (0)