Skip to content

Commit 941e4a2

Browse files
committed
Documentation
1 parent 38d402b commit 941e4a2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

turbopack/crates/turbopack-core/src/module_graph/merged_modules.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,12 +249,15 @@ pub async fn compute_merged_modules(module_graph: Vc<ModuleGraph>) -> Result<Vc<
249249
// A list of all different execution traces (orderings) of all modules, initially a union of
250250
// the partition of each chunk's modules (one for each ESM subtree in each chunks), but
251251
// further split up later on.
252+
// This is a list (one per chunk group, initially) of lists (one per ESM subtree) of modules
252253
let mut lists;
253254
let mut lists_reverse_indices: FxIndexMap<
254255
ResolvedVc<Box<dyn MergeableModule>>,
255256
FxIndexSet<ListOccurrence>,
256257
> = FxIndexMap::default();
257258

259+
// Once we do the reconciliation below, we need to insert new lists, but the lists are per
260+
// chunk group, so we put them into this one.
258261
#[allow(non_snake_case)]
259262
let LISTS_COMMON_IDX: usize;
260263

0 commit comments

Comments
 (0)