From 45a991415ffd007a81b926612842d9cfafeb0b42 Mon Sep 17 00:00:00 2001 From: "paseo-bot[bot]" <266920839+paseo-bot[bot]@users.noreply.github.com> Date: Sun, 15 Nov 2026 03:39:17 +0000 Subject: [PATCH] Keep compiled workspace packages out of the Playwright transform (#9733) Tests import packages/*/dist at run time. On a cold cache each worker transpiled the same files and wrote them into Playwright's shared transform cache without locking, so a worker could read an entry mid-write, load an empty module, and fail with "does not provide an export named". Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com> --- packages/app/playwright.config.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/app/playwright.config.ts b/packages/app/playwright.config.ts index 2592697b4..7253db166 100644 --- a/packages/app/playwright.config.ts +++ b/packages/app/playwright.config.ts @@ -23,6 +23,12 @@ export default defineConfig({ // spec on one worker avoids repeating its file-level setup across daemons. fullyParallel: false, workers: Number(process.env.E2E_WORKERS ?? (process.env.CI ? "2" : "1")), + // Workspace packages are already compiled. Tests import them at run time, so + // on a cold cache every worker transpiles the same files and writes them into + // Playwright's shared transform cache without locking. A worker that reads an + // entry mid-write loads an empty module and fails with "does not provide an + // export named". + build: { external: ["**/packages/*/dist/**"] }, retries: process.env.CI ? 1 : 0, reporter: [["list"]], use: {