@@ -30,13 +30,13 @@ use crate::{
30
30
build_chunk_graph:: build_chunk_graph,
31
31
get_chunk_from_ukey, get_mut_chunk_from_ukey, is_source_equal,
32
32
old_cache:: { use_code_splitting_cache, Cache as OldCache , CodeSplittingCache } ,
33
- prepare_get_exports_type , to_identifier, BoxDependency , BoxModule , CacheCount , CacheOptions ,
34
- Chunk , ChunkByUkey , ChunkContentHash , ChunkGraph , ChunkGroupByUkey , ChunkGroupUkey , ChunkKind ,
35
- ChunkUkey , CodeGenerationResults , CompilationLogger , CompilationLogging , CompilerOptions ,
36
- DependencyId , DependencyType , Entry , EntryData , EntryOptions , EntryRuntime , Entrypoint ,
37
- ExecuteModuleId , Filename , ImportVarMap , LocalFilenameFn , Logger , Module , ModuleFactory ,
38
- ModuleGraph , ModuleGraphPartial , ModuleIdentifier , PathData , ResolverFactory , RuntimeGlobals ,
39
- RuntimeModule , RuntimeSpec , SharedPluginDriver , SourceType , Stats ,
33
+ to_identifier, BoxDependency , BoxModule , CacheCount , CacheOptions , Chunk , ChunkByUkey ,
34
+ ChunkContentHash , ChunkGraph , ChunkGroupByUkey , ChunkGroupUkey , ChunkKind , ChunkUkey ,
35
+ CodeGenerationResults , CompilationLogger , CompilationLogging , CompilerOptions , DependencyId ,
36
+ DependencyType , Entry , EntryData , EntryOptions , EntryRuntime , Entrypoint , ExecuteModuleId ,
37
+ Filename , ImportVarMap , LocalFilenameFn , Logger , Module , ModuleFactory , ModuleGraph ,
38
+ ModuleGraphPartial , ModuleIdentifier , PathData , ResolverFactory , RuntimeGlobals , RuntimeModule ,
39
+ RuntimeSpec , SharedPluginDriver , SourceType , Stats ,
40
40
} ;
41
41
42
42
pub type BuildDependency = (
@@ -752,13 +752,6 @@ impl Compilation {
752
752
Ok ( ( ) )
753
753
}
754
754
755
- // FIXME:
756
- // Webpack may modify the moduleGraph in module.getExportsType()
757
- // and it is widely called after compilation.finish()
758
- // so add this method to trigger moduleGraph modification and
759
- // then make sure that moduleGraph is immutable
760
- prepare_get_exports_type ( & mut self . get_module_graph_mut ( ) ) ;
761
-
762
755
run_iteration ( self , & mut codegen_cache_counter, |( _, module) | {
763
756
module. get_code_generation_dependencies ( ) . is_none ( )
764
757
} ) ?;
0 commit comments