mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
feat(nuxt): extends support for app.vue
(#6228)
This commit is contained in:
parent
968087bcc5
commit
5a042cd69b
@ -57,7 +57,9 @@ export async function generateApp (nuxt: Nuxt, app: NuxtApp) {
|
||||
export async function resolveApp (nuxt: Nuxt, app: NuxtApp) {
|
||||
// Resolve main (app.vue)
|
||||
if (!app.mainComponent) {
|
||||
app.mainComponent = await findPath(['~/App', '~/app'])
|
||||
app.mainComponent = await findPath(
|
||||
nuxt.options._layers.flatMap(layer => [`${layer.config.srcDir}/App`, `${layer.config.srcDir}/app`])
|
||||
)
|
||||
}
|
||||
if (!app.mainComponent) {
|
||||
app.mainComponent = tryResolveModule('@nuxt/ui-templates/templates/welcome.vue')
|
||||
|
Loading…
Reference in New Issue
Block a user