Enable source maps and improve debugging support

This commit enables source maps in napcat-shell's Vite config for better debugging, adds source map path overrides to VSCode settings, and updates nodeTest.ps1 to launch with the Node.js inspector. The autoIncludeTSPlugin transform now returns a source map for improved breakpoint support in VSCode. Also adds a sources.txt file listing project and dependency sources.
This commit is contained in:
手瓜一十雪
2025-11-14 21:21:49 +08:00
parent 7341d53f7a
commit cf7890340c
4 changed files with 19 additions and 6 deletions

View File

@@ -48,7 +48,7 @@ const ShellBaseConfig = () =>
},
},
build: {
sourcemap: false,
sourcemap: true,
target: 'esnext',
minify: false,
lib: {
@@ -61,7 +61,7 @@ const ShellBaseConfig = () =>
fileName: (_, entryName) => `${entryName}.mjs`,
},
rollupOptions: {
external: [...nodeModules, ...external],
external: [...nodeModules, ...external]
},
},
});