From 833e7667dabe3a3430c23fcd52bf314f31f1e77c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Raffray?= Date: Sat, 30 Nov 2024 14:35:37 +0100 Subject: [PATCH] do not set vite.build.minify option --- src/module.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/module.ts b/src/module.ts index 4104a5fc..674168d0 100644 --- a/src/module.ts +++ b/src/module.ts @@ -77,11 +77,7 @@ export default defineNuxtModule({ nuxt.options.vite.build ) } else { - // In the default case, make sure minification by esbuild is turned on and set the drop option - nuxt.options.vite.build = defu( - { minify: true }, - nuxt.options.vite.build - ) + // In case of esbuild, set the drop option nuxt.options.vite.esbuild = defu( { drop: ['console', 'debugger'] as ('console' | 'debugger')[],