webcomponent: enhance console log removal configuration in terser for production

This commit is contained in:
Carlos Santos 2025-05-20 11:37:10 +02:00
parent 8390133a5a
commit 7a81873285

View File

@ -39,7 +39,11 @@ export default {
terser({
ecma: 2020, // Use modern features when possible
compress: {
drop_console: production, // Remove console.logs in production
drop_console: {
log: production, // Remove console.logs in production
warn: true,
error: true
},
drop_debugger: production,
pure_getters: true,
unsafe: true,