mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-02-26 04:40:10 +08:00
Merge pull request #208 from electron-vite/fix/220724-type
fix: types warn
This commit is contained in:
commit
6005d6f7ea
@ -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