From aecbc93c1652c9a0e9821568fc9b8c929c9ab6ea Mon Sep 17 00:00:00 2001 From: Jan Kessler Date: Fri, 13 Jun 2025 12:42:09 +0200 Subject: [PATCH 1/2] disable console.log entirely --- vite.config.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index ed690f502..0d4592046 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -39,5 +39,8 @@ export default defineConfig({ }, worker: { format: 'es' - } + }, + esbuild: { + pure: ['console.log'], + }, }); From 4681b06206f8ce720e109debeb989475232b1845 Mon Sep 17 00:00:00 2001 From: Jan Kessler Date: Fri, 13 Jun 2025 13:54:15 +0200 Subject: [PATCH 2/2] also disable console.debug --- vite.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 0d4592046..729fba615 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -41,6 +41,6 @@ export default defineConfig({ format: 'es' }, esbuild: { - pure: ['console.log'], - }, + pure: ['console.log', 'console.debug'] + } });