File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ Take a look at the "name"/"names" or async/children option.`);
257
257
if ( Array . isArray ( selectedChunks ) ) {
258
258
return allChunks . filter ( chunk => {
259
259
const notCommmonChunk = chunk !== targetChunk ;
260
- const isSelectedChunk = selectedChunks . indexOf ( chunk . name ) > - 1 ;
260
+ const isSelectedChunk = selectedChunks . includes ( chunk . name ) ;
261
261
return notCommmonChunk && isSelectedChunk ;
262
262
} ) ;
263
263
}
@@ -386,7 +386,7 @@ Take a look at the "name"/"names" or async/children option.`);
386
386
for ( const chunk of chunks ) {
387
387
if ( chunk === targetChunk ) continue ;
388
388
for ( const block of chunk . blocksIterable ) {
389
- if ( block . chunks . indexOf ( targetChunk ) === - 1 ) {
389
+ if ( ! block . chunks . includes ( targetChunk ) ) {
390
390
block . chunks . unshift ( targetChunk ) ;
391
391
}
392
392
targetChunk . addBlock ( block ) ;
You can’t perform that action at this time.
0 commit comments