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:
1 parent
7341d53f7a
commit
cf7890340c
4 files changed
+19
-6
No files matched your search
@@ -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]
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user