Explorar el Código

build: enable source maps for improved debugging (#3596)

Co-authored-by: Eric Wheeler <[email protected]>
KJ7LNW hace 9 meses
padre
commit
afc82b851d
Se han modificado 3 ficheros con 4 adiciones y 0 borrados
  1. 1 0
      webview-ui/package.json
  2. 2 0
      webview-ui/tsconfig.json
  3. 1 0
      webview-ui/vite.config.ts

+ 1 - 0
webview-ui/package.json

@@ -59,6 +59,7 @@
 		"remove-markdown": "^0.6.0",
 		"shell-quote": "^1.8.2",
 		"shiki": "^3.2.1",
+		"source-map": "^0.7.4",
 		"styled-components": "^6.1.13",
 		"tailwind-merge": "^2.6.0",
 		"tailwindcss": "^4.0.0",

+ 2 - 0
webview-ui/tsconfig.json

@@ -10,6 +10,8 @@
 		"forceConsistentCasingInFileNames": true,
 		"noFallthroughCasesInSwitch": true,
 		"module": "esnext",
+		"sourceMap": true,
+		"inlineSources": false,
 		"moduleResolution": "bundler",
 		"resolveJsonModule": true,
 		"isolatedModules": true,

+ 1 - 0
webview-ui/vite.config.ts

@@ -58,6 +58,7 @@ export default defineConfig({
 	build: {
 		outDir: "build",
 		reportCompressedSize: false,
+		sourcemap: true,
 		rollupOptions: {
 			output: {
 				entryFileNames: `assets/[name].js`,