@@ -546,6 +546,7 @@ class Stats {
546546 const parents = new Set ( ) ;
547547 const children = new Set ( ) ;
548548 const siblings = new Set ( ) ;
549+ const childIdByOrder = chunk . getChildIdsByOrders ( ) ;
549550 for ( const chunkGroup of chunk . groupsIterable ) {
550551 for ( const parentGroup of chunkGroup . parentsIterable ) {
551552 for ( const chunk of parentGroup . chunks ) {
@@ -574,7 +575,8 @@ class Stats {
574575 hash : chunk . renderedHash ,
575576 siblings : Array . from ( siblings ) . sort ( ) ,
576577 parents : Array . from ( parents ) . sort ( ) ,
577- children : Array . from ( children ) . sort ( )
578+ children : Array . from ( children ) . sort ( ) ,
579+ childrenByOrder : childIdByOrder
578580 } ;
579581 if ( showChunkModules ) {
580582 obj . modules = chunk
@@ -1142,6 +1144,19 @@ class Stats {
11421144 colors . yellow ( id ) ;
11431145 colors . normal ( "}<" ) ;
11441146 }
1147+ if ( chunk . childrenByOrder ) {
1148+ for ( const name of Object . keys ( chunk . childrenByOrder ) ) {
1149+ const children = chunk . childrenByOrder [ name ] ;
1150+ colors . normal ( " " ) ;
1151+ colors . magenta ( `(${ name } :` ) ;
1152+ for ( const id of children ) {
1153+ colors . normal ( " {" ) ;
1154+ colors . yellow ( id ) ;
1155+ colors . normal ( "}" ) ;
1156+ }
1157+ colors . magenta ( ")" ) ;
1158+ }
1159+ }
11451160 if ( chunk . entry ) {
11461161 colors . yellow ( " [entry]" ) ;
11471162 } else if ( chunk . initial ) {
0 commit comments