From f8f6181d8dbe283303730467a13523c93ce6df0d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 23 May 2026 08:37:12 +0000 Subject: [PATCH] build: use inline sourcemaps across all workspace packages (#1799) * 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. * 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 * Tighten changeset description --------- Signed-off-by: Nathan Rajlich Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Nathan Rajlich --- .changeset/windows-inline-sourcemaps.md | 28 +++++++++++++++++++++++++ packages/core/tsconfig.json | 4 +--- packages/tsconfig/base.json | 3 ++- packages/workflow/tsconfig.json | 5 +---- 4 files changed, 32 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..a3abc61256 --- /dev/null +++ b/.changeset/windows-inline-sourcemaps.md @@ -0,0 +1,28 @@ +--- +"@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-testing": patch +"@workflow/world-vercel": patch +"workflow": patch +--- + +Use inline sourcemaps for all workspace packages; published packages no longer ship external `.js.map` files. 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"]