File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 6
6
defineNuxtModule ,
7
7
extendPages ,
8
8
installModule ,
9
+ useLogger ,
9
10
} from '@nuxt/kit'
10
11
import { defu } from 'defu'
11
12
import { name , version } from '../package.json'
@@ -55,6 +56,7 @@ export default defineNuxtModule<ModuleOptions>({
55
56
} ,
56
57
async setup ( _options , _nuxt ) {
57
58
const resolver = createResolver ( import . meta. url )
59
+ const logger = useLogger ( 'Nuxtify Pages' )
58
60
59
61
// Expose module options to app config
60
62
_nuxt . options . appConfig . nuxtify = defu ( _nuxt . options . appConfig . nuxtify , {
@@ -112,7 +114,7 @@ export default defineNuxtModule<ModuleOptions>({
112
114
113
115
if ( coreImportIndex > - 1 ) {
114
116
imports . splice ( coreImportIndex , 1 )
115
- if ( _options . verboseLogs ) console . log ( '[nuxtify-pages] Intentionally overriding useNuxtifyConfig from @nuxtify/core.' )
117
+ if ( _options . verboseLogs ) logger . warn ( '[nuxtify-pages] Intentionally overriding useNuxtifyConfig from @nuxtify/core.' )
116
118
}
117
119
} )
118
120
} ,
You can’t perform that action at this time.
0 commit comments