diff --git a/src/module.ts b/src/module.ts index 3b973314..34f0c654 100644 --- a/src/module.ts +++ b/src/module.ts @@ -85,7 +85,7 @@ export default defineNuxtModule({ async function registerModule(name: string, key: string, options: Record) { if (!hasNuxtModule(name)) { - await installModule(name, options) + await installModule(name, defu((nuxt.options as any)[key], options)) } else { (nuxt.options as any)[key] = defu((nuxt.options as any)[key], options) }