From 804b3230105fe74204e7136da130570d7c9f3907 Mon Sep 17 00:00:00 2001 From: pooya parsa Date: Tue, 21 Dec 2021 17:18:14 +0100 Subject: [PATCH] fix(nuxt3): properly pass inline options to installModule (#2489) --- packages/nuxt3/src/core/nuxt.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/nuxt3/src/core/nuxt.ts b/packages/nuxt3/src/core/nuxt.ts index f384dc02da..e9689f078e 100644 --- a/packages/nuxt3/src/core/nuxt.ts +++ b/packages/nuxt3/src/core/nuxt.ts @@ -67,7 +67,8 @@ async function initNuxt (nuxt: Nuxt) { }) for (const m of modulesToInstall) { - await installModule(m, nuxt) + const inlineOptions = Array.isArray(m) ? m[1] : {} + await installModule(m, inlineOptions, nuxt) } await nuxt.callHook('modules:done', { nuxt } as ModuleContainer)