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')[],