From e5d1342796e38d0d88bf3a10949256bc8356d440 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Fri, 15 Nov 2024 08:52:43 +0900 Subject: [PATCH] order --- turbopack/crates/turbopack-ecmascript/src/tree_shake/graph.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/turbopack/crates/turbopack-ecmascript/src/tree_shake/graph.rs b/turbopack/crates/turbopack-ecmascript/src/tree_shake/graph.rs index 8914851672214a..628cf47ecf525d 100644 --- a/turbopack/crates/turbopack-ecmascript/src/tree_shake/graph.rs +++ b/turbopack/crates/turbopack-ecmascript/src/tree_shake/graph.rs @@ -694,6 +694,8 @@ impl DepGraph { let graph = self.g.idx_graph.clone().into_graph::(); let mut condensed = condensation(graph, true); + self.workarounds_server_action(&mut condensed, data); + let optimizer = GraphOptimizer { graph_ix: &self.g.graph_ix, }; @@ -702,7 +704,6 @@ impl DepGraph { break; } } - self.workarounds_server_action(&mut condensed, data); let mut new_graph = InternedGraph::default();