Skip to content

Commit

Permalink
Turbopack: change COMMON_CHUNKING_TYPE (vercel#74080)
Browse files Browse the repository at this point in the history
This is an arbitrary decision, but a "regular" sync import is
`ParallelInheritAsync`. This creates less intermediate notes when
building the graph
  • Loading branch information
mischnic authored Dec 19, 2024
1 parent 91065e3 commit 5f82dda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/next-api/src/module_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ struct SingleModuleGraphBuilderEdge {

/// The chunking type that occurs most often, is handled more efficiently by not creating
/// intermediate SingleModuleGraphBuilderNode::ChunkableReference nodes.
const COMMON_CHUNKING_TYPE: ChunkingType = ChunkingType::Parallel;
const COMMON_CHUNKING_TYPE: ChunkingType = ChunkingType::ParallelInheritAsync;

struct SingleModuleGraphBuilder {}
impl Visit<SingleModuleGraphBuilderNode> for SingleModuleGraphBuilder {
Expand Down

0 comments on commit 5f82dda

Please sign in to comment.