@@ -44,17 +44,17 @@ use crate::{
4444 AsyncModulesArtifact , BindingCell , BoxDependency , BoxModule , CacheCount , CacheOptions ,
4545 CgcRuntimeRequirementsArtifact , CgmHashArtifact , CgmRuntimeRequirementsArtifact , Chunk ,
4646 ChunkByUkey , ChunkContentHash , ChunkGraph , ChunkGroupByUkey , ChunkGroupUkey , ChunkHashesArtifact ,
47- ChunkIdsArtifact , ChunkKind , ChunkRenderArtifact , ChunkRenderCacheArtifact , ChunkRenderResult ,
48- ChunkUkey , CodeGenerationJob , CodeGenerationResult , CodeGenerationResults , CompilationLogger ,
49- CompilationLogging , CompilerOptions , ConcatenationScope , DependenciesDiagnosticsArtifact ,
50- DependencyCodeGeneration , DependencyTemplate , DependencyTemplateType , DependencyType ,
51- DerefOption , Entry , EntryData , EntryOptions , EntryRuntime , Entrypoint , ExecuteModuleId , Filename ,
52- ImportPhase , ImportVarMap , ImportedByDeferModulesArtifact , Logger , MemoryGCStorage ,
53- ModuleFactory , ModuleGraph , ModuleGraphCacheArtifact , ModuleGraphMut , ModuleGraphPartial ,
54- ModuleGraphRef , ModuleIdentifier , ModuleIdsArtifact , ModuleStaticCacheArtifact , PathData ,
55- ResolverFactory , RuntimeGlobals , RuntimeKeyMap , RuntimeMode , RuntimeModule , RuntimeSpec ,
56- RuntimeSpecMap , RuntimeTemplate , SharedPluginDriver , SideEffectsOptimizeArtifact , SourceType ,
57- Stats , ValueCacheVersions ,
47+ ChunkKind , ChunkNamedIdArtifact , ChunkRenderArtifact , ChunkRenderCacheArtifact ,
48+ ChunkRenderResult , ChunkUkey , CodeGenerationJob , CodeGenerationResult , CodeGenerationResults ,
49+ CompilationLogger , CompilationLogging , CompilerOptions , ConcatenationScope ,
50+ DependenciesDiagnosticsArtifact , DependencyCodeGeneration , DependencyTemplate ,
51+ DependencyTemplateType , DependencyType , DerefOption , Entry , EntryData , EntryOptions ,
52+ EntryRuntime , Entrypoint , ExecuteModuleId , Filename , ImportPhase , ImportVarMap ,
53+ ImportedByDeferModulesArtifact , Logger , MemoryGCStorage , ModuleFactory , ModuleGraph ,
54+ ModuleGraphCacheArtifact , ModuleGraphMut , ModuleGraphPartial , ModuleGraphRef , ModuleIdentifier ,
55+ ModuleIdsArtifact , ModuleStaticCacheArtifact , PathData , ResolverFactory , RuntimeGlobals ,
56+ RuntimeKeyMap , RuntimeMode , RuntimeModule , RuntimeSpec , RuntimeSpecMap , RuntimeTemplate ,
57+ SharedPluginDriver , SideEffectsOptimizeArtifact , SourceType , Stats , ValueCacheVersions ,
5858 build_chunk_graph:: artifact:: BuildChunkGraphArtifact ,
5959 compilation:: build_module_graph:: {
6060 BuildModuleGraphArtifact , ModuleExecutor , UpdateParam , build_module_graph,
@@ -254,8 +254,8 @@ pub struct Compilation {
254254 pub side_effects_optimize_artifact : DerefOption < SideEffectsOptimizeArtifact > ,
255255 // artifact for module_ids
256256 pub module_ids_artifact : ModuleIdsArtifact ,
257- // artifact for chunk_ids
258- pub chunk_ids_artifact : ChunkIdsArtifact ,
257+ // artifact for named_chunk_ids
258+ pub named_chunk_ids_artifact : ChunkNamedIdArtifact ,
259259 // artifact for code_generation
260260 pub code_generation_results : BindingCell < CodeGenerationResults > ,
261261 // artifact for create_module_hashes
@@ -393,7 +393,7 @@ impl Compilation {
393393 ) ,
394394 side_effects_optimize_artifact : DerefOption :: new ( Default :: default ( ) ) ,
395395 module_ids_artifact : Default :: default ( ) ,
396- chunk_ids_artifact : Default :: default ( ) ,
396+ named_chunk_ids_artifact : Default :: default ( ) ,
397397 code_generation_results : Default :: default ( ) ,
398398 cgm_hash_artifact : Default :: default ( ) ,
399399 cgm_runtime_requirements_artifact : Default :: default ( ) ,
@@ -2010,7 +2010,6 @@ impl Compilation {
20102010 entrypoint_ukey : & ChunkGroupUkey ,
20112011 chunk_group_by_ukey : & ChunkGroupByUkey ,
20122012 chunk_by_ukey : & ChunkByUkey ,
2013- chunk_ids : & ChunkIdsArtifact ,
20142013 chunk_graph : & mut ChunkGraph ,
20152014 ) {
20162015 let entrypoint = chunk_group_by_ukey. expect_get ( entrypoint_ukey) ;
@@ -2026,15 +2025,14 @@ impl Compilation {
20262025 runtime,
20272026 chunk_by_ukey. get ( & entrypoint. get_runtime_chunk ( chunk_group_by_ukey) ) ,
20282027 ) {
2029- chunk_graph. set_runtime_id ( runtime, chunk. id ( chunk_ids ) . map ( |id| id. to_string ( ) ) ) ;
2028+ chunk_graph. set_runtime_id ( runtime, chunk. id ( ) . map ( |id| id. to_string ( ) ) ) ;
20302029 }
20312030 }
20322031 for i in self . entrypoints . iter ( ) {
20332032 process_entrypoint (
20342033 i. 1 ,
20352034 & self . chunk_group_by_ukey ,
20362035 & self . chunk_by_ukey ,
2037- & self . chunk_ids_artifact ,
20382036 & mut self . chunk_graph ,
20392037 )
20402038 }
@@ -2043,7 +2041,6 @@ impl Compilation {
20432041 i,
20442042 & self . chunk_group_by_ukey ,
20452043 & self . chunk_by_ukey ,
2046- & self . chunk_ids_artifact ,
20472044 & mut self . chunk_graph ,
20482045 )
20492046 }
@@ -2529,17 +2526,14 @@ impl Compilation {
25292526 . filter ( |( _, ( _, remaining) ) | * remaining != 0 )
25302527 . map ( |( chunk_ukey, _) | self . chunk_by_ukey . expect_get ( chunk_ukey) )
25312528 . collect ( ) ;
2532- circular. sort_unstable_by ( |a, b| {
2533- a. id ( & self . chunk_ids_artifact )
2534- . cmp ( & b. id ( & self . chunk_ids_artifact ) )
2535- } ) ;
2529+ circular. sort_unstable_by ( |a, b| a. id ( ) . cmp ( & b. id ( ) ) ) ;
25362530 runtime_chunks. extend ( circular. iter ( ) . map ( |chunk| chunk. ukey ( ) ) ) ;
25372531 let circular_names = circular
25382532 . iter ( )
25392533 . map ( |chunk| {
25402534 chunk
25412535 . name ( )
2542- . or ( chunk. id ( & self . chunk_ids_artifact ) . map ( |id| id. as_str ( ) ) )
2536+ . or ( chunk. id ( ) . map ( |id| id. as_str ( ) ) )
25432537 . unwrap_or ( "no id chunk" )
25442538 } )
25452539 . join ( ", " ) ;
0 commit comments