mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-16 21:58:19 +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
|
// Nuxt 3
|
||||||
if (majorVersion === 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)
|
const nuxt = await loadNuxt(opts)
|
||||||
return nuxt
|
return nuxt
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user