mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-06 21:10:23 +00:00
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:
@@ -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