fix(web): remove warn and error console log removal (#1086)

* fix(web): remove warn and error console log removal

* chore: comment explaining VITE_ALLOW_CONSOLE_LOGS
This commit is contained in:
Zack Spear
2025-01-30 11:14:10 -08:00
committed by GitHub
parent c3f4cf53c1
commit e7d15ee5ec

View File

@@ -80,9 +80,11 @@ export default defineNuxtConfig({
vite: {
plugins: [
// Only remove non-critical console methods when VITE_ALLOW_CONSOLE_LOGS is false
// Keeps console.warn and console.error for debugging purposes
!process.env.VITE_ALLOW_CONSOLE_LOGS &&
removeConsole({
includes: ['log', 'warn', 'error', 'info', 'debug'],
includes: ['log', 'info', 'debug'],
}),
],
build: {