Merge pull request #13928 from webpack/perf/limit-parallel-chunk-generation

limit the number of parallel generated chunks
This commit is contained in:
Tobias Koppers 2021-08-05 13:23:01 +02:00 committed by GitHub
commit 6d24d111f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -3784,8 +3784,9 @@ This prevents using hashes of each other and should be avoided.`);
/** @type {Map<string, {hash: string, source: Source, chunk: Chunk}>} */
const alreadyWrittenFiles = new Map();
asyncLib.forEach(
asyncLib.forEachLimit(
this.chunks,
15,
(chunk, callback) => {
/** @type {RenderManifestEntry[]} */
let manifest;