Skip to content

Commit

Permalink
Merge pull request #577 from nuxt-modules/vejja/issue576
Browse files Browse the repository at this point in the history
fix(loggers): do not set minify option by default
  • Loading branch information
vejja authored Nov 30, 2024
2 parents 7d800fe + 833e766 commit b39dbd9
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 b39dbd9

Please sign in to comment.