Skip to content

Commit 1f90807

Browse files
committed
fix chunk_group_info
1 parent 51d6188 commit 1f90807

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -587,14 +587,10 @@ pub async fn compute_chunk_group_info(graph: &ModuleGraph) -> Result<Vc<ChunkGro
587587
chunk_groups,
588588
)))
589589
}
590-
ChunkingType::Emitted { .. } => {
591-
// Already handled during module graph construction and turned into
592-
// ChunkingType::Collected
593-
return Ok(GraphTraversalAction::Skip);
594-
}
595-
ChunkingType::Collected {
596-
merge_tag: _merge_tag,
590+
ChunkingType::Emitted {
591+
merge_tag: _,
597592
is_async,
593+
emit_to_all_entries: _,
598594
} => {
599595
// TODO ideally this would get the chunk group bitset of the parent
600596
// ChunkGroup::Entry
@@ -607,6 +603,10 @@ pub async fn compute_chunk_group_info(graph: &ModuleGraph) -> Result<Vc<ChunkGro
607603
},
608604
)))
609605
}
606+
ChunkingType::Collected { .. } => {
607+
// These only exist in the module_batches graph.
608+
unreachable!();
609+
}
610610
ChunkingType::PerEntry => {
611611
// This edge in itself is irrelevant, but continue with transitive
612612
// imports.

0 commit comments

Comments
 (0)