Skip to content

Commit d45de14

Browse files
committed
Distribute bundles more evenly into CI shards
1 parent bb1e3d0 commit d45de14

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/rollup/build.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -527,10 +527,6 @@ function resolveEntryFork(resolvedEntry, isFBBundle) {
527527
}
528528

529529
async function createBundle(bundle, bundleType) {
530-
if (shouldSkipBundle(bundle, bundleType)) {
531-
return;
532-
}
533-
534530
const filename = getFilename(bundle, bundleType);
535531
const logKey =
536532
chalk.white.bold(filename) + chalk.dim(` (${bundleType.toLowerCase()})`);
@@ -766,6 +762,10 @@ async function buildEverything() {
766762
);
767763
}
768764

765+
bundles = bundles.filter(([bundle, bundleType]) => {
766+
return !shouldSkipBundle(bundle, bundleType);
767+
});
768+
769769
if (process.env.CIRCLE_NODE_TOTAL) {
770770
// In CI, parallelize bundles across multiple tasks.
771771
const nodeTotal = parseInt(process.env.CIRCLE_NODE_TOTAL, 10);

0 commit comments

Comments
 (0)