mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-01-19 03:46:35 +08:00
fix: types warn
This commit is contained in:
parent
8b740153f2
commit
3041cc6d85
@ -45,6 +45,7 @@ export default defineConfig({
|
||||
|
||||
function withDebug(config: UserConfig): UserConfig {
|
||||
if (process.env.VSCODE_DEBUG) {
|
||||
if (!config.build) config.build = {}
|
||||
config.build.sourcemap = true
|
||||
config.plugins = (config.plugins || []).concat({
|
||||
name: 'electron-vite-debug',
|
||||
|
Loading…
x
Reference in New Issue
Block a user