@@ -360,7 +360,6 @@ pub fn assign_ascending_chunk_ids(chunks: &[ChunkUkey], compilation: &mut Compil
360
360
361
361
fn compare_chunks_by_modules < ' a > (
362
362
chunk_graph : & ChunkGraph ,
363
- module_graph : & ModuleGraph ,
364
363
module_ids : & ' a ModuleIdsArtifact ,
365
364
a : & Chunk ,
366
365
b : & Chunk ,
@@ -372,19 +371,19 @@ fn compare_chunks_by_modules<'a>(
372
371
. entry ( a_ukey)
373
372
. or_insert_with ( || {
374
373
chunk_graph
375
- . get_ordered_chunk_modules ( & a_ukey, module_graph )
374
+ . get_ordered_chunk_normal_modules_identifier ( & a_ukey)
376
375
. into_iter ( )
377
- . map ( |m| ChunkGraph :: get_module_id ( module_ids, m. identifier ( ) ) . map ( |s| s. as_str ( ) ) )
376
+ . map ( |m| ChunkGraph :: get_module_id ( module_ids, m) . map ( |s| s. as_str ( ) ) )
378
377
. collect_vec ( )
379
378
} )
380
379
. clone ( ) ;
381
380
let b_modules = ordered_chunk_modules_cache
382
381
. entry ( b_ukey)
383
382
. or_insert_with ( || {
384
383
chunk_graph
385
- . get_ordered_chunk_modules ( & b_ukey, module_graph )
384
+ . get_ordered_chunk_normal_modules_identifier ( & b_ukey)
386
385
. into_iter ( )
387
- . map ( |m| ChunkGraph :: get_module_id ( module_ids, m. identifier ( ) ) . map ( |s| s. as_str ( ) ) )
386
+ . map ( |m| ChunkGraph :: get_module_id ( module_ids, m) . map ( |s| s. as_str ( ) ) )
388
387
. collect_vec ( )
389
388
} )
390
389
. clone ( ) ;
@@ -427,7 +426,6 @@ fn compare_chunks_by_groups(
427
426
428
427
pub fn compare_chunks_natural < ' a > (
429
428
chunk_graph : & ChunkGraph ,
430
- module_graph : & ModuleGraph ,
431
429
chunk_group_by_ukey : & ChunkGroupByUkey ,
432
430
module_ids : & ' a ModuleIdsArtifact ,
433
431
a : & Chunk ,
@@ -444,14 +442,8 @@ pub fn compare_chunks_natural<'a>(
444
442
return runtime_ordering;
445
443
}
446
444
447
- let modules_ordering = compare_chunks_by_modules (
448
- chunk_graph,
449
- module_graph,
450
- module_ids,
451
- a,
452
- b,
453
- ordered_chunk_modules_cache,
454
- ) ;
445
+ let modules_ordering =
446
+ compare_chunks_by_modules ( chunk_graph, module_ids, a, b, ordered_chunk_modules_cache) ;
455
447
if modules_ordering != Ordering :: Equal {
456
448
return modules_ordering;
457
449
}
0 commit comments