Skip to content

Commit

Permalink
do not set vite.build.minify option
Browse files Browse the repository at this point in the history
  • Loading branch information
vejja committed Nov 30, 2024
1 parent 7d800fe commit 833e766
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,7 @@ export default defineNuxtModule<ModuleOptions>({
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')[],
Expand Down

0 comments on commit 833e766

Please sign in to comment.