Skip to content

Commit 1a5eff7

Browse files
nicohrubeccodex
andcommitted
revert: parallel browser bundle builds
Restore serial browser bundling while retaining the Node integration test shards. Co-Authored-By: GPT-6 <codex@openai.com>
1 parent c5b9cb1 commit 1a5eff7

2 files changed

Lines changed: 2 additions & 17 deletions

File tree

‎packages/browser/package.json‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,7 @@
5252
"scripts": {
5353
"build": "run-p build:transpile build:bundle build:types",
5454
"build:dev": "run-p build:transpile build:types",
55-
"build:bundle": "run-p build:bundle:shard:*",
56-
"build:bundle:shard:1": "rollup -c rollup.bundle.config.mjs --configShard=1",
57-
"build:bundle:shard:2": "rollup -c rollup.bundle.config.mjs --configShard=2",
58-
"build:bundle:shard:3": "rollup -c rollup.bundle.config.mjs --configShard=3",
55+
"build:bundle": "rollup -c rollup.bundle.config.mjs",
5956
"build:transpile": "rollup -c rollup.npm.config.mjs",
6057
"build:types": "tsc -p tsconfig.types.json",
6158
"build:watch": "run-p build:transpile:watch build:bundle:watch",

‎packages/browser/rollup.bundle.config.mjs‎

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -157,16 +157,4 @@ builds.push(
157157
...makeBundleConfigVariants(tracingReplayFeedbackLogsMetricsBaseBundleConfig),
158158
);
159159

160-
export default ({ configShard } = {}) => {
161-
if (configShard === undefined) {
162-
return builds;
163-
}
164-
165-
const shard = Number(configShard);
166-
167-
if (![1, 2, 3].includes(shard)) {
168-
throw new Error('configShard must be 1, 2, or 3');
169-
}
170-
171-
return builds.filter((_, index) => Math.floor(index / 3) % 3 === shard - 1);
172-
};
160+
export default builds;

0 commit comments

Comments
 (0)