File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -521,7 +521,8 @@ module.exports = class SplitChunksPlugin {
521521 // Walk through all chunks
522522 for ( const chunk of item . chunks . keys ( ) ) {
523523 // skip if we address ourself
524- if ( chunk . name === chunkName || chunk === newChunk ) continue ;
524+ if ( ( chunkName && chunk . name === chunkName ) || chunk === newChunk )
525+ continue ;
525526 // respect max requests when not enforced
526527 const maxRequests = chunk . isOnlyInitial ( )
527528 ? item . cacheGroup . maxInitialRequests
Original file line number Diff line number Diff line change @@ -126,16 +126,16 @@ chunk {11} fcdf398c8972e4dcf788.js 1.76 KiB <{10}> ={2}= ={6}= [rendered] [rec
126126
127127exports [` StatsTestCases should print correct stats for async-commons-chunk 1` ] = `
128128"Entrypoint main = main.js
129- chunk { 0 } 0.js 21 bytes <{ 3 } > [rendered] reused as split chunk (cache group: default)
129+ chunk { 0 } 0.js 21 bytes <{ 3 } > ={ 1 } = ={ 2 } = [rendered] reused as split chunk (cache group: default)
130+ > [3] ./index.js 17:1-21:3
130131 > [3] ./index.js 2:1-5:3
131- [0] ./a.js 21 bytes { 0 } { 1 } { 2 } [built]
132- chunk { 1 } 1.js 42 bytes <{ 3 } > [rendered]
133132 > ./a ./b [3] ./index.js 9:1-13:3
134- [0] ./a.js 21 bytes { 0 } { 1 } { 2 } [built]
133+ [0] ./a.js 21 bytes { 0 } [built]
134+ chunk { 1 } 1.js 21 bytes <{ 3 } > ={ 0 } = [rendered]
135+ > ./a ./b [3] ./index.js 9:1-13:3
135136 [1] ./b.js 21 bytes { 1 } [built]
136- chunk { 2 } 2.js 42 bytes <{ 3 } > [rendered]
137+ chunk { 2 } 2.js 21 bytes <{ 3 } > = { 0 } = [rendered]
137138 > [3] ./index.js 17:1-21:3
138- [0] ./a.js 21 bytes { 0 } { 1 } { 2 } [built]
139139 [2] ./c.js 21 bytes { 2 } [built]
140140chunk { 3 } main.js (main) 515 bytes >{ 0 } < > { 1 } < > { 2 } < [entry] [rendered]
141141 > ./ main
You can’t perform that action at this time.
0 commit comments