build: keep console.error/warn/info in production builds
All checks were successful
CI / update (push) Successful in 1m22s

Changed drop_console from true to ['log', 'debug'] to retain
error and warning logs for debugging while reducing bundle size.
This commit is contained in:
2026-01-20 12:15:58 +01:00
parent 180bdb4aaa
commit 8af2fc3f3b

View File

@@ -10,7 +10,7 @@ export default defineConfig({
minify: 'terser', minify: 'terser',
terserOptions: { terserOptions: {
compress: { compress: {
drop_console: true, drop_console: ['log', 'debug'],
drop_debugger: true drop_debugger: true
} }
}, },