build: keep console.error/warn/info in production builds

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 2ed82988e9
commit 7bb0c9ef9a
+1 -1
View File
@@ -10,7 +10,7 @@ export default defineConfig({
minify: 'terser',
terserOptions: {
compress: {
drop_console: true,
drop_console: ['log', 'debug'],
drop_debugger: true
}
},