@@ -8,7 +8,10 @@ mod create_chunk_assets;
88mod create_hash;
99mod create_module_assets;
1010mod create_module_hashes;
11- mod finish_module;
11+ mod finish_make;
12+ mod finish_module_graph;
13+ mod finish_modules;
14+ mod make;
1215mod module_ids;
1316mod optimize_chunk_modules;
1417mod optimize_chunks;
@@ -19,6 +22,7 @@ mod optimize_tree;
1922mod process_assets;
2023mod run_passes;
2124mod runtime_requirements;
25+ mod seal;
2226use std:: {
2327 collections:: { VecDeque , hash_map} ,
2428 fmt:: { self , Debug } ,
@@ -74,8 +78,7 @@ use crate::{
7478 SourceType , Stats , ValueCacheVersions ,
7579 build_chunk_graph:: artifact:: BuildChunkGraphArtifact ,
7680 compilation:: build_module_graph:: {
77- BuildModuleGraphArtifact , ModuleExecutor , UpdateParam , build_module_graph,
78- finish_build_module_graph, update_module_graph,
81+ BuildModuleGraphArtifact , ModuleExecutor , UpdateParam , update_module_graph,
7982 } ,
8083 compiler:: { CompilationRecords , CompilerId } ,
8184 get_runtime_key,
@@ -990,25 +993,6 @@ impl Compilation {
990993 ukey
991994 }
992995
993- #[ instrument( "Compilation:build_module_graph" , target=TRACING_BENCH_TARGET , skip_all) ]
994- pub async fn build_module_graph ( & mut self ) -> Result < ( ) > {
995- // run module_executor
996- if let Some ( module_executor) = & mut self . module_executor {
997- let mut module_executor = std:: mem:: take ( module_executor) ;
998- module_executor. hook_before_make ( self ) . await ?;
999- self . module_executor = Some ( module_executor) ;
1000- }
1001-
1002- let artifact = self . build_module_graph_artifact . take ( ) ;
1003- self
1004- . build_module_graph_artifact
1005- . replace ( build_module_graph ( self , artifact) . await ?) ;
1006-
1007- self . in_finish_make . store ( true , Ordering :: Release ) ;
1008-
1009- Ok ( ( ) )
1010- }
1011-
1012996 pub async fn rebuild_module < T > (
1013997 & mut self ,
1014998 module_identifiers : IdentifierSet ,
0 commit comments