Skip to content

Commit 1936873

Browse files
committed
Fix bundleType filtering logic to correctly handle array input in requestedBundleTypes
1 parent fe6b92b commit 1936873

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/rollup/build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,8 +530,8 @@ function shouldSkipBundle(bundle, bundleType) {
530530
return true;
531531
}
532532
if (requestedBundleTypes.length > 0) {
533-
const isAskingForDifferentType = requestedBundleTypes.every(
534-
requestedType => bundleType.indexOf(requestedType) === -1
533+
const isAskingForDifferentType = requestedBundleTypes.some(
534+
requestedType => !bundleType.includes(requestedType)
535535
);
536536
if (isAskingForDifferentType) {
537537
return true;

0 commit comments

Comments
 (0)