fix: types warn

This commit is contained in:
草鞋没号 2022-07-24 12:34:15 +08:00
parent 8b740153f2
commit 3041cc6d85

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