From ee3c499df616f2509507ab7da37009f83fb88906 Mon Sep 17 00:00:00 2001 From: Nathan Rajlich Date: Fri, 17 Apr 2026 11:24:44 -0700 Subject: [PATCH 1/3] fix(build): use inline sourcemaps across all workspace packages Prevents a Turbopack bug on Windows that caused the SWC worker to crash when reading external .js.map files in workspace-linked packages (paths were concatenated with mixed separators like 'packages/serde/dist\\index.js.map'). Once the worker crashed, the module graph entered a broken state where all subsequent requests returned 500, manifesting as flaky E2E Windows tests where the 'should rebuild on imported step dependency change' test would time out waiting for /api/workflows/start to succeed. Extends the original fix from #352 (previously applied only to @workflow/core and workflow) to the shared base tsconfig.json so that all packages producing a dist/ output benefit. --- .changeset/windows-inline-sourcemaps.md | 27 +++++++++++++++++++++++++ packages/core/tsconfig.json | 4 +--- packages/tsconfig/base.json | 3 ++- packages/workflow/tsconfig.json | 5 +---- 4 files changed, 31 insertions(+), 8 deletions(-) create mode 100644 .changeset/windows-inline-sourcemaps.md diff --git a/.changeset/windows-inline-sourcemaps.md b/.changeset/windows-inline-sourcemaps.md new file mode 100644 index 0000000000..0932b7a514 --- /dev/null +++ b/.changeset/windows-inline-sourcemaps.md @@ -0,0 +1,27 @@ +--- +"@workflow/ai": patch +"@workflow/astro": patch +"@workflow/builders": patch +"@workflow/cli": patch +"@workflow/core": patch +"@workflow/errors": patch +"@workflow/next": patch +"@workflow/nest": patch +"@workflow/nitro": patch +"@workflow/nuxt": patch +"@workflow/rollup": patch +"@workflow/serde": patch +"@workflow/sveltekit": patch +"@workflow/typescript-plugin": patch +"@workflow/utils": patch +"@workflow/vite": patch +"@workflow/vitest": patch +"@workflow/web-shared": patch +"@workflow/world": patch +"@workflow/world-local": patch +"@workflow/world-postgres": patch +"@workflow/world-vercel": patch +"workflow": patch +--- + +Use inline sourcemaps across all workspace packages to work around a Turbopack bug on Windows that caused the SWC worker to crash when reading external `.js.map` files in workspace-linked packages (paths were concatenated with mixed separators). This stabilizes the Windows E2E tests by avoiding the broken module graph state that caused `/api/workflows/start` to return 500 after the first sourcemap read failure. Extends the original fix from #352 (previously applied only to `@workflow/core` and `workflow`) to the shared base `tsconfig.json`. diff --git a/packages/core/tsconfig.json b/packages/core/tsconfig.json index 65f2136e46..a78dbf413c 100644 --- a/packages/core/tsconfig.json +++ b/packages/core/tsconfig.json @@ -1,9 +1,7 @@ { "extends": "@workflow/tsconfig/base.json", "compilerOptions": { - "outDir": "dist", - "sourceMap": false, - "inlineSourceMap": true + "outDir": "dist" }, "include": ["src"], "exclude": ["node_modules", "**/*.test.ts"] diff --git a/packages/tsconfig/base.json b/packages/tsconfig/base.json index 8c1f55d262..48c6169199 100644 --- a/packages/tsconfig/base.json +++ b/packages/tsconfig/base.json @@ -6,7 +6,8 @@ "declarationMap": true, "esModuleInterop": true, "forceConsistentCasingInFileNames": true, - "sourceMap": true, + "sourceMap": false, + "inlineSourceMap": true, "inlineSources": true, "isolatedModules": true, "moduleResolution": "node16", diff --git a/packages/workflow/tsconfig.json b/packages/workflow/tsconfig.json index 0f4008973e..a78dbf413c 100644 --- a/packages/workflow/tsconfig.json +++ b/packages/workflow/tsconfig.json @@ -1,10 +1,7 @@ { "extends": "@workflow/tsconfig/base.json", "compilerOptions": { - "outDir": "dist", - "sourceMap": false, - // See https://github.com/vercel/workflow/pull/352 - "inlineSourceMap": true + "outDir": "dist" }, "include": ["src"], "exclude": ["node_modules", "**/*.test.ts"] From a9fee1e666ec6a38c3c3d7a3659318452a1f2b6f Mon Sep 17 00:00:00 2001 From: Nathan Rajlich Date: Fri, 17 Apr 2026 15:48:21 -0700 Subject: [PATCH 2/3] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Nathan Rajlich --- .changeset/windows-inline-sourcemaps.md | 1 + 1 file changed, 1 insertion(+) diff --git a/.changeset/windows-inline-sourcemaps.md b/.changeset/windows-inline-sourcemaps.md index 0932b7a514..99ed721693 100644 --- a/.changeset/windows-inline-sourcemaps.md +++ b/.changeset/windows-inline-sourcemaps.md @@ -20,6 +20,7 @@ "@workflow/world": patch "@workflow/world-local": patch "@workflow/world-postgres": patch +"@workflow/world-testing": patch "@workflow/world-vercel": patch "workflow": patch --- From 4c4d26ed460ef461ccfbd07f3303f3c13ea73ce0 Mon Sep 17 00:00:00 2001 From: Nathan Rajlich Date: Sat, 23 May 2026 00:42:29 -0700 Subject: [PATCH 3/3] Tighten changeset description --- .changeset/windows-inline-sourcemaps.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/windows-inline-sourcemaps.md b/.changeset/windows-inline-sourcemaps.md index 99ed721693..a3abc61256 100644 --- a/.changeset/windows-inline-sourcemaps.md +++ b/.changeset/windows-inline-sourcemaps.md @@ -25,4 +25,4 @@ "workflow": patch --- -Use inline sourcemaps across all workspace packages to work around a Turbopack bug on Windows that caused the SWC worker to crash when reading external `.js.map` files in workspace-linked packages (paths were concatenated with mixed separators). This stabilizes the Windows E2E tests by avoiding the broken module graph state that caused `/api/workflows/start` to return 500 after the first sourcemap read failure. Extends the original fix from #352 (previously applied only to `@workflow/core` and `workflow`) to the shared base `tsconfig.json`. +Use inline sourcemaps for all workspace packages; published packages no longer ship external `.js.map` files.