fix(nuxt3): properly pass inline options to installModule (#2489)

This commit is contained in:
pooya parsa 2021-12-21 17:18:14 +01:00 committed by GitHub
parent e674d0f60d
commit 804b323010
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,7 +67,8 @@ async function initNuxt (nuxt: Nuxt) {
}) })
for (const m of modulesToInstall) { 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) await nuxt.callHook('modules:done', { nuxt } as ModuleContainer)