From 78f92a24f8ac5cd0cf1e1c5b55dfc8476612bf93 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Wed, 9 Jul 2025 12:24:18 +0200 Subject: [PATCH] fix(module): merge user's options when installing modules --- src/module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }