diff --git a/lib/buildChunkGraph.js b/lib/buildChunkGraph.js index d01920ddc..510e6a2f7 100644 --- a/lib/buildChunkGraph.js +++ b/lib/buildChunkGraph.js @@ -277,7 +277,7 @@ const visitModules = ( * @returns {void} */ const iteratorBlock = b => { - // 1. We create a chunk group for this Block + // 1. We create a chunk group with single chunk in it for this Block // but only once (blockChunkGroups map) let cgi = blockChunkGroups.get(b); /** @type {ChunkGroup} */ @@ -327,7 +327,8 @@ const visitModules = ( c = cgi.chunkGroup; } - // 2. We store the Block+Chunk mapping as dependency for the chunk + // 2. We store the Block + Chunk Group mapping as dependency + // for the chunk group which is set in processQueue let deps = chunkGroupDependencies.get(chunkGroup); if (!deps) chunkGroupDependencies.set(chunkGroup, (deps = [])); deps.push({ @@ -335,7 +336,7 @@ const visitModules = ( chunkGroup: c }); - // 3. We create/update the chunk group info + // 3. We enqueue the chunk group info creation/updating let connectList = queueConnect.get(chunkGroupInfo); if (connectList === undefined) { connectList = new Set();