feat: debug

This commit is contained in:
手瓜一十雪 2024-05-22 17:30:40 +08:00
parent fdeba94653
commit 08976624cd
2 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,7 @@
"noUnusedLocals": false, "noUnusedLocals": false,
"noUnusedParameters": false, "noUnusedParameters": false,
"noFallthroughCasesInSwitch": true, "noFallthroughCasesInSwitch": true,
"sourceMap": true,
"paths": { "paths": {
"@*": [ "@*": [
"./src*" "./src*"

View File

@ -76,6 +76,7 @@ const baseConfig = (mode: string = 'development') => defineConfig({
}, },
}, },
build: { build: {
sourcemap: mode === 'development',
target: 'esnext', target: 'esnext',
// minify: mode === 'production' ? 'esbuild' : false, // minify: mode === 'production' ? 'esbuild' : false,
// 压缩代码出现了未知问题导致无法运行,暂时不启用 // 压缩代码出现了未知问题导致无法运行,暂时不启用