mirror of https://github.com/webpack/webpack.git
refactor: clarify comments
This commit is contained in:
parent
1444bce9c9
commit
47cb8e1a28
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue