File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
test/statsCases/prefetch-preload-mixed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -389,7 +389,7 @@ class Chunk {
389389 const cmp = b . order - a . order ;
390390 if ( cmp !== 0 ) return cmp ;
391391 // TOOD webpack 5 remove this check of compareTo
392- if ( a . compareTo ) return a . compareTo ( b ) ;
392+ if ( a . group . compareTo ) return a . group . compareTo ( b . group ) ;
393393 return 0 ;
394394 } ) ;
395395 result [ name ] = Array . from (
Original file line number Diff line number Diff line change @@ -349,7 +349,7 @@ class ChunkGroup {
349349 const cmp = b . order - a . order ;
350350 if ( cmp !== 0 ) return cmp ;
351351 // TOOD webpack 5 remove this check of compareTo
352- if ( a . compareTo ) return a . compareTo ( b ) ;
352+ if ( a . group . compareTo ) return a . group . compareTo ( b . group ) ;
353353 return 0 ;
354354 } ) ;
355355 result [ name ] = list . map ( i => i . group ) ;
Original file line number Diff line number Diff line change 1- chunk {0} a.js (a) 136 bytes <{3}> >{10}< >{9}< (prefetch: {10 } {9 }) [rendered]
1+ chunk {0} a.js (a) 136 bytes <{3}> >{10}< >{9}< (prefetch: {9 } {10 }) [rendered]
22chunk {1} b.js (b) 203 bytes <{3}> >{6}< >{7}< >{8}< (prefetch: {6} {8}) (preload: {7}) [rendered]
33chunk {2} c.js (c) 134 bytes <{3}> >{4}< >{5}< (preload: {4} {5}) [rendered]
4- chunk {3} main.js (main) 126 bytes >{0}< >{1}< >{2}< [entry] [rendered]
4+ chunk {3} main.js (main) 195 bytes >{0}< >{1}< >{2}< (prefetch: {0} {1} {2}) [entry] [rendered]
55chunk {4} c1.js (c1) 0 bytes <{2}> [rendered]
66chunk {5} c2.js (c2) 0 bytes <{2}> [rendered]
77chunk {6} b1.js (b1) 0 bytes <{1}> [rendered]
Original file line number Diff line number Diff line change 1- import ( /* webpackChunkName: "a" */ "./a" ) ;
2- import ( /* webpackChunkName: "b" */ "./b" ) ;
3- import ( /* webpackChunkName: "c" */ "./c" ) ;
1+ import ( /* webpackPrefetch: true, webpackChunkName: "a" */ "./a" ) ;
2+ import ( /* webpackPrefetch: true, webpackChunkName: "b" */ "./b" ) ;
3+ import ( /* webpackPrefetch: true, webpackChunkName: "c" */ "./c" ) ;
You can’t perform that action at this time.
0 commit comments