refactor: 简化实体类并使用esbuild优化构建

Co-authored-by: aider (openai/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
ikmkj
2025-08-04 19:33:00 +08:00
parent e1226a11b3
commit c188437ed5
2 changed files with 4 additions and 47 deletions

View File

@@ -20,12 +20,9 @@ export default defineConfig({
}
},
build: {
minify: 'terser',
terserOptions: {
compress: {
drop_console: true,
drop_debugger: true,
},
minify: 'esbuild',
esbuild: {
drop: ['console', 'debugger'],
},
}
})