mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 01:17:16 +00:00
fix(nuxt3): properly pass inline options to installModule (#2489)
This commit is contained in:
parent
e674d0f60d
commit
804b323010
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user