Merge pull request #208 from electron-vite/fix/220724-type

fix: types warn
This commit is contained in:
草鞋没号 2022-07-24 12:36:10 +08:00 committed by GitHub
commit 6005d6f7ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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',