mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 07:32:01 +00:00
fix(kit): try canonical package name for edge release
This commit is contained in:
parent
573f87edf9
commit
e006c5605b
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user