From 5f82dda75ea5e790d7bdb86e250fe5d4bbd463e8 Mon Sep 17 00:00:00 2001 From: Niklas Mischkulnig <4586894+mischnic@users.noreply.github.com> Date: Thu, 19 Dec 2024 09:46:27 +0100 Subject: [PATCH] Turbopack: change COMMON_CHUNKING_TYPE (#74080) This is an arbitrary decision, but a "regular" sync import is `ParallelInheritAsync`. This creates less intermediate notes when building the graph --- crates/next-api/src/module_graph.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/next-api/src/module_graph.rs b/crates/next-api/src/module_graph.rs index b8bb28aa1b593..03630170198e5 100644 --- a/crates/next-api/src/module_graph.rs +++ b/crates/next-api/src/module_graph.rs @@ -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 for SingleModuleGraphBuilder {