Skip to content

Commit afc82b8

Browse files
KJ7LNWEric Wheeler
andauthored
build: enable source maps for improved debugging (#3596)
Co-authored-by: Eric Wheeler <[email protected]>
1 parent cbd7727 commit afc82b8

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

webview-ui/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"remove-markdown": "^0.6.0",
6060
"shell-quote": "^1.8.2",
6161
"shiki": "^3.2.1",
62+
"source-map": "^0.7.4",
6263
"styled-components": "^6.1.13",
6364
"tailwind-merge": "^2.6.0",
6465
"tailwindcss": "^4.0.0",

webview-ui/tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
"forceConsistentCasingInFileNames": true,
1111
"noFallthroughCasesInSwitch": true,
1212
"module": "esnext",
13+
"sourceMap": true,
14+
"inlineSources": false,
1315
"moduleResolution": "bundler",
1416
"resolveJsonModule": true,
1517
"isolatedModules": true,

webview-ui/vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export default defineConfig({
5858
build: {
5959
outDir: "build",
6060
reportCompressedSize: false,
61+
sourcemap: true,
6162
rollupOptions: {
6263
output: {
6364
entryFileNames: `assets/[name].js`,

0 commit comments

Comments
 (0)