@@ -361,20 +361,20 @@ class Chunk {
361361 } ;
362362 }
363363
364- getChildIdsByPriorities ( ) {
364+ getChildIdsByOrders ( ) {
365365 const lists = new Map ( ) ;
366366 for ( const group of this . groupsIterable ) {
367367 if ( group . chunks [ group . chunks . length - 1 ] === this ) {
368368 for ( const childGroup of group . childrenIterable ) {
369369 // TODO webpack 5 remove this check for options
370370 if ( typeof childGroup . options === "object" ) {
371371 for ( const key of Object . keys ( childGroup . options ) ) {
372- if ( key . endsWith ( "Priority " ) ) {
373- const name = key . substr ( 0 , key . length - "Priority " . length ) ;
372+ if ( key . endsWith ( "Order " ) ) {
373+ const name = key . substr ( 0 , key . length - "Order " . length ) ;
374374 let list = lists . get ( name ) ;
375375 if ( list === undefined ) lists . set ( name , ( list = [ ] ) ) ;
376376 list . push ( {
377- priority : childGroup . options [ key ] ,
377+ order : childGroup . options [ key ] ,
378378 group : childGroup
379379 } ) ;
380380 }
@@ -386,7 +386,7 @@ class Chunk {
386386 const result = Object . create ( null ) ;
387387 for ( const [ name , list ] of lists ) {
388388 list . sort ( ( a , b ) => {
389- const cmp = b . priority - a . priority ;
389+ const cmp = b . order - a . order ;
390390 if ( cmp !== 0 ) return cmp ;
391391 // TOOD webpack 5 remove this check of compareTo
392392 if ( a . compareTo ) return a . compareTo ( b ) ;
@@ -402,11 +402,11 @@ class Chunk {
402402 return result ;
403403 }
404404
405- getChildIdsByPrioritiesMap ( ) {
405+ getChildIdsByOrdersMap ( ) {
406406 const chunkMaps = Object . create ( null ) ;
407407
408408 for ( const chunk of this . getAllAsyncChunks ( ) ) {
409- const data = chunk . getChildIdsByPriorities ( ) ;
409+ const data = chunk . getChildIdsByOrders ( ) ;
410410 for ( const key of Object . keys ( data ) ) {
411411 let chunkMap = chunkMaps [ key ] ;
412412 if ( chunkMap === undefined )
0 commit comments