Skip to content

Commit 78f92a2

Browse files
committed
fix(module): merge user's options when installing modules
1 parent 52908c1 commit 78f92a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export default defineNuxtModule<ModuleOptions>({
8585

8686
async function registerModule(name: string, key: string, options: Record<string, any>) {
8787
if (!hasNuxtModule(name)) {
88-
await installModule(name, options)
88+
await installModule(name, defu((nuxt.options as any)[key], options))
8989
} else {
9090
(nuxt.options as any)[key] = defu((nuxt.options as any)[key], options)
9191
}

0 commit comments

Comments
 (0)