fix(kit): try canonical package name for edge release

This commit is contained in:
Pooya Parsa 2022-04-20 12:35:09 +02:00
parent 573f87edf9
commit e006c5605b

View File

@ -38,7 +38,7 @@ export async function loadNuxt (opts: LoadNuxtOptions): Promise<Nuxt> {
// Nuxt 3
if (majorVersion === 3) {
const { loadNuxt } = await importModule(pkg.name, resolveOpts)
const { loadNuxt } = await importModule((pkg as any)._name || pkg.name, resolveOpts)
const nuxt = await loadNuxt(opts)
return nuxt
}