mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 15:42:09 +00:00
fix(nuxt3): properly pass inline options to installModule
This commit is contained in:
parent
804b323010
commit
b41a1d2d18
@ -67,8 +67,11 @@ async function initNuxt (nuxt: Nuxt) {
|
||||
})
|
||||
|
||||
for (const m of modulesToInstall) {
|
||||
const inlineOptions = Array.isArray(m) ? m[1] : {}
|
||||
await installModule(m, inlineOptions, nuxt)
|
||||
if (Array.isArray(m)) {
|
||||
await installModule(m[0], m[1], nuxt)
|
||||
} else {
|
||||
await installModule(m, {}, nuxt)
|
||||
}
|
||||
}
|
||||
|
||||
await nuxt.callHook('modules:done', { nuxt } as ModuleContainer)
|
||||
|
Loading…
Reference in New Issue
Block a user