Skip to content

Commit

Permalink
Don't skip chunkable references
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed Dec 12, 2024
1 parent 92a8b55 commit 3b0ef85
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions crates/next-api/src/module_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,11 @@ impl Visit<SingleModuleGraphBuilderNode> for SingleModuleGraphBuilder {

fn visit(&mut self, edge: Self::Edge) -> VisitControlFlow<SingleModuleGraphBuilderNode> {
match edge.to {
SingleModuleGraphBuilderNode::Module { .. } => VisitControlFlow::Continue(edge.to),
SingleModuleGraphBuilderNode::ChunkableReference { .. }
| SingleModuleGraphBuilderNode::Issues(_) => VisitControlFlow::Skip(edge.to),
SingleModuleGraphBuilderNode::Module { .. }
| SingleModuleGraphBuilderNode::ChunkableReference { .. } => {
VisitControlFlow::Continue(edge.to)
}
SingleModuleGraphBuilderNode::Issues(_) => VisitControlFlow::Skip(edge.to),
}
}

Expand Down

0 comments on commit 3b0ef85

Please sign in to comment.