Skip to content

Commit 54cbe8c

Browse files
committed
FB builds shouldn't contribute to whether we include the npm files
1 parent 2ece72e commit 54cbe8c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/rollup/packaging.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,11 @@ let entryPointsToHasBundle = new Map();
139139
for (const bundle of Bundles.bundles) {
140140
let hasBundle = entryPointsToHasBundle.get(bundle.entry);
141141
if (!hasBundle) {
142-
entryPointsToHasBundle.set(bundle.entry, bundle.bundleTypes.length > 0);
142+
const hasNonFBBundleTypes = bundle.bundleTypes.some(
143+
type =>
144+
type !== FB_WWW_DEV && type !== FB_WWW_PROD && type !== FB_WWW_PROFILING
145+
);
146+
entryPointsToHasBundle.set(bundle.entry, hasNonFBBundleTypes);
143147
}
144148
}
145149

0 commit comments

Comments
 (0)