mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(kit): module compatibility not working with module names
This commit is contained in:
parent
88f914e9a0
commit
6cabe69ce0
@ -46,7 +46,7 @@ export async function getNuxtModuleVersion (module: string | NuxtModule, nuxt: N
|
|||||||
return version
|
return version
|
||||||
}
|
}
|
||||||
// it's possible that the module will be installed, it just hasn't been done yet, preemptively load the instance
|
// it's possible that the module will be installed, it just hasn't been done yet, preemptively load the instance
|
||||||
if (typeof module !== 'string' && nuxt.options.modules.includes(moduleMeta.name)) {
|
if (nuxt.options.modules.includes(moduleMeta.name)) {
|
||||||
const { buildTimeModuleMeta } = await loadNuxtModuleInstance(moduleMeta.name, nuxt)
|
const { buildTimeModuleMeta } = await loadNuxtModuleInstance(moduleMeta.name, nuxt)
|
||||||
return buildTimeModuleMeta.version || false
|
return buildTimeModuleMeta.version || false
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user