File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
turbopack/crates/turbopack-core/src/module_graph Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,10 @@ pub async fn collect_graph(graph: Vc<ModuleGraph>) -> Result<Vc<CollectedModules
130130 node_idx : GraphNodeIndex ,
131131 ( module_entry_membership, emitted_references) |
132132 -> Result < GraphTraversalAction > {
133+ if let Some ( node) = ResolvedVc :: try_downcast :: < Box < dyn CollectingModule > > ( node) {
134+ collecting_modules. insert ( node) ;
135+ }
136+
133137 let Some ( ( parent, ref_data, _) ) = parent_info else {
134138 // An entry module
135139 return Ok ( GraphTraversalAction :: Continue ) ;
@@ -139,10 +143,6 @@ pub async fn collect_graph(graph: Vc<ModuleGraph>) -> Result<Vc<CollectedModules
139143 emitted_references. insert ( ( ref_data, node, node_idx) ) ;
140144 }
141145
142- if let Some ( node) = ResolvedVc :: try_downcast :: < Box < dyn CollectingModule > > ( node) {
143- collecting_modules. insert ( node) ;
144- }
145-
146146 if parent == node {
147147 // A self-reference
148148 Ok ( GraphTraversalAction :: Skip )
You can’t perform that action at this time.
0 commit comments