diff --git a/docs/package.json b/docs/package.json
index f07c93fe..13adb463 100755
--- a/docs/package.json
+++ b/docs/package.json
@@ -12,7 +12,7 @@
"@nuxt-themes/docus": "^1.14.7",
"@nuxtjs/plausible": "^1.0.0",
"@nuxtlabs/github-module": "^1.6.3",
- "nuxt": "^3.11.2",
+ "nuxt": "3.11.2",
"nuxt-security": "latest"
},
"resolutions": {
diff --git a/playground/nuxt.config.ts b/playground/nuxt.config.ts
index ecd18c12..f33e0dfc 100644
--- a/playground/nuxt.config.ts
+++ b/playground/nuxt.config.ts
@@ -55,7 +55,6 @@ export default defineNuxtConfig({
interval: 30000,
headers: true
},
- removeLoggers: false,
},
hooks: {
diff --git a/playground/pages/index.vue b/playground/pages/index.vue
index c8790d0e..492b1564 100644
--- a/playground/pages/index.vue
+++ b/playground/pages/index.vue
@@ -5,5 +5,6 @@
diff --git a/src/module.ts b/src/module.ts
index e50d667c..4104a5fc 100644
--- a/src/module.ts
+++ b/src/module.ts
@@ -65,8 +65,8 @@ export default defineNuxtModule({
// This method is deprecated and will be removed in the future
addVitePlugin(viteRemove(securityOptions.removeLoggers))
- } else {
- // Uses the native method by Vite
+ } else if (!nuxt.options.dev) {
+ // Uses the native method by Vite, except in dev mode
// Vite can use either esbuild or terser
if (nuxt.options.vite.build?.minify === 'terser') {
// In case of terser, set the drop_console and drop_debugger options