From 062a9eaf9b6fb6b1038380cb756d96d520ed415e Mon Sep 17 00:00:00 2001 From: Ashika Anand Babu Date: Mon, 1 Jun 2026 20:28:58 -0700 Subject: [PATCH] fix: enable inlineSources in tsconfig to fix broken sourcemaps in npm packages Fixes https://github.com/google/A2UI/issues/1309 --- renderers/lit/tsconfig.json | 2 +- renderers/markdown/markdown-it/tsconfig.json | 2 +- renderers/web_core/tsconfig.json | 2 +- samples/client/lit/custom-components-example/tsconfig.json | 2 +- samples/client/lit/mcp-apps-in-a2ui-sample/tsconfig.json | 2 +- samples/client/lit/shell/tsconfig.json | 2 +- tools/editor/tsconfig.json | 2 +- tools/inspector/tsconfig.json | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/renderers/lit/tsconfig.json b/renderers/lit/tsconfig.json index f928e3840f..2a4a2098aa 100644 --- a/renderers/lit/tsconfig.json +++ b/renderers/lit/tsconfig.json @@ -7,7 +7,7 @@ "declarationMap": true, "incremental": true, "forceConsistentCasingInFileNames": true, - "inlineSources": false, + "inlineSources": true, // "allowJs": true, "preserveWatchOutput": true, "sourceMap": true, diff --git a/renderers/markdown/markdown-it/tsconfig.json b/renderers/markdown/markdown-it/tsconfig.json index 5348e69678..1e2d2e978a 100644 --- a/renderers/markdown/markdown-it/tsconfig.json +++ b/renderers/markdown/markdown-it/tsconfig.json @@ -7,7 +7,7 @@ "declarationMap": true, "incremental": true, "forceConsistentCasingInFileNames": true, - "inlineSources": false, + "inlineSources": true, // "allowJs": true, "preserveWatchOutput": true, "sourceMap": true, diff --git a/renderers/web_core/tsconfig.json b/renderers/web_core/tsconfig.json index a1a7e666f9..ddde0b15c8 100644 --- a/renderers/web_core/tsconfig.json +++ b/renderers/web_core/tsconfig.json @@ -7,7 +7,7 @@ "declarationMap": true, "incremental": true, "forceConsistentCasingInFileNames": true, - "inlineSources": false, + "inlineSources": true, "preserveWatchOutput": true, "sourceMap": true, "target": "es2022", diff --git a/samples/client/lit/custom-components-example/tsconfig.json b/samples/client/lit/custom-components-example/tsconfig.json index 99bf993a08..6369fba512 100644 --- a/samples/client/lit/custom-components-example/tsconfig.json +++ b/samples/client/lit/custom-components-example/tsconfig.json @@ -7,7 +7,7 @@ "declarationMap": true, "incremental": true, "forceConsistentCasingInFileNames": true, - "inlineSources": false, + "inlineSources": true, // "allowJs": true, "preserveWatchOutput": true, "sourceMap": true, diff --git a/samples/client/lit/mcp-apps-in-a2ui-sample/tsconfig.json b/samples/client/lit/mcp-apps-in-a2ui-sample/tsconfig.json index 99bf993a08..6369fba512 100644 --- a/samples/client/lit/mcp-apps-in-a2ui-sample/tsconfig.json +++ b/samples/client/lit/mcp-apps-in-a2ui-sample/tsconfig.json @@ -7,7 +7,7 @@ "declarationMap": true, "incremental": true, "forceConsistentCasingInFileNames": true, - "inlineSources": false, + "inlineSources": true, // "allowJs": true, "preserveWatchOutput": true, "sourceMap": true, diff --git a/samples/client/lit/shell/tsconfig.json b/samples/client/lit/shell/tsconfig.json index cbf6c46b64..be7c3f717d 100644 --- a/samples/client/lit/shell/tsconfig.json +++ b/samples/client/lit/shell/tsconfig.json @@ -7,7 +7,7 @@ "declarationMap": true, "incremental": true, "forceConsistentCasingInFileNames": true, - "inlineSources": false, + "inlineSources": true, "preserveWatchOutput": true, "sourceMap": true, "target": "es2022", diff --git a/tools/editor/tsconfig.json b/tools/editor/tsconfig.json index 18d85e5589..650f7b3798 100644 --- a/tools/editor/tsconfig.json +++ b/tools/editor/tsconfig.json @@ -7,7 +7,7 @@ "declarationMap": true, "incremental": true, "forceConsistentCasingInFileNames": true, - "inlineSources": false, + "inlineSources": true, // "allowJs": true, "preserveWatchOutput": true, "sourceMap": true, diff --git a/tools/inspector/tsconfig.json b/tools/inspector/tsconfig.json index ceeefc355d..a8d903ce6b 100644 --- a/tools/inspector/tsconfig.json +++ b/tools/inspector/tsconfig.json @@ -7,7 +7,7 @@ "declarationMap": true, "incremental": true, "forceConsistentCasingInFileNames": true, - "inlineSources": false, + "inlineSources": true, // "allowJs": true, "preserveWatchOutput": true, "sourceMap": true,