File tree 4 files changed +4
-4
lines changed
4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 12
12
"@nuxt-themes/docus" : " ^1.14.7" ,
13
13
"@nuxtjs/plausible" : " ^1.0.0" ,
14
14
"@nuxtlabs/github-module" : " ^1.6.3" ,
15
- "nuxt" : " ^ 3.11.2" ,
15
+ "nuxt" : " 3.11.2" ,
16
16
"nuxt-security" : " latest"
17
17
},
18
18
"resolutions" : {
Original file line number Diff line number Diff line change @@ -55,7 +55,6 @@ export default defineNuxtConfig({
55
55
interval : 30000 ,
56
56
headers : true
57
57
} ,
58
- removeLoggers : false ,
59
58
} ,
60
59
61
60
hooks : {
Original file line number Diff line number Diff line change 5
5
</template >
6
6
7
7
<script setup lang="ts">
8
+ console .log (' hello from index should be removed in production' )
8
9
const { data } = await useAsyncData (async () => await Promise .resolve (" Home" ));
9
10
</script >
Original file line number Diff line number Diff line change @@ -65,8 +65,8 @@ export default defineNuxtModule<ModuleOptions>({
65
65
// This method is deprecated and will be removed in the future
66
66
addVitePlugin ( viteRemove ( securityOptions . removeLoggers ) )
67
67
68
- } else {
69
- // Uses the native method by Vite
68
+ } else if ( ! nuxt . options . dev ) {
69
+ // Uses the native method by Vite, except in dev mode
70
70
// Vite can use either esbuild or terser
71
71
if ( nuxt . options . vite . build ?. minify === 'terser' ) {
72
72
// In case of terser, set the drop_console and drop_debugger options
You can’t perform that action at this time.
0 commit comments