File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ webpackContext.id = ${JSON.stringify(id)};`;
166166 }
167167
168168 getSourceWithBlocks ( blocks , id ) {
169- let hasMultipleChunks = false ;
169+ let hasMultipleOrNoChunks = false ;
170170 const map = blocks
171171 . filter ( block => block . dependencies [ 0 ] . module )
172172 . map ( function ( block ) {
@@ -181,15 +181,15 @@ webpackContext.id = ${JSON.stringify(id)};`;
181181 } ) . reduce ( function ( map , item ) {
182182 const chunks = item . block . chunks || [ ] ;
183183 if ( chunks . length !== 1 ) {
184- hasMultipleChunks = true ;
184+ hasMultipleOrNoChunks = true ;
185185 }
186186 map [ item . userRequest ] = [ item . dependency . module . id ]
187187 . concat ( chunks . map ( chunk => chunk . id ) ) ;
188188
189189 return map ;
190190 } , { } ) ;
191191
192- const requestPrefix = hasMultipleChunks ?
192+ const requestPrefix = hasMultipleOrNoChunks ?
193193 "Promise.all(ids.slice(1).map(__webpack_require__.e))" :
194194 "__webpack_require__.e(ids[1])" ;
195195
You can’t perform that action at this time.
0 commit comments