File tree Expand file tree Collapse file tree 1 file changed +15
-18
lines changed
turbopack/crates/turbopack/src Expand file tree Collapse file tree 1 file changed +15
-18
lines changed Original file line number Diff line number Diff line change @@ -30,24 +30,21 @@ pub async fn get_global_module_id_strategy(
30
30
31
31
// And additionally, all the modules that are inserted by chunking (i.e. async loaders)
32
32
let mut async_idents = vec ! [ ] ;
33
- module_graph
34
- . traverse_all_edges_unordered ( |parent, current| {
35
- if let (
36
- _,
37
- & RefData {
38
- chunking_type : ChunkingType :: Async ,
39
- ..
40
- } ,
41
- ) = parent
42
- {
43
- let module =
44
- ResolvedVc :: try_sidecast :: < Box < dyn ChunkableModule > > ( current. module )
45
- . context ( "expected chunkable module for async reference" ) ?;
46
- async_idents. push ( AsyncLoaderModule :: asset_ident_for ( * module) ) ;
47
- }
48
- Ok ( ( ) )
49
- } )
50
- . await ?;
33
+ module_graph. traverse_all_edges_unordered ( |parent, current| {
34
+ if let (
35
+ _,
36
+ & RefData {
37
+ chunking_type : ChunkingType :: Async ,
38
+ ..
39
+ } ,
40
+ ) = parent
41
+ {
42
+ let module = ResolvedVc :: try_sidecast :: < Box < dyn ChunkableModule > > ( current. module )
43
+ . context ( "expected chunkable module for async reference" ) ?;
44
+ async_idents. push ( AsyncLoaderModule :: asset_ident_for ( * module) ) ;
45
+ }
46
+ Ok ( ( ) )
47
+ } ) ?;
51
48
52
49
let mut module_id_map = module_idents
53
50
. chain ( async_idents. into_iter ( ) )
You can’t perform that action at this time.
0 commit comments