fix(nuxt3): enable app-level <suspense> with pages module (#1929)

This commit is contained in:
Daniel Roe 2021-11-15 15:59:15 +00:00 committed by GitHub
parent 4b367a1959
commit 0a74940bf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 5 deletions

View File

@ -29,8 +29,6 @@ export default defineNuxtModule({
}) })
nuxt.hook('app:resolve', (app) => { nuxt.hook('app:resolve', (app) => {
// Remove default root with Suspense
app.rootComponent = resolve(runtimeDir, 'root.vue')
// Add default layout for pages // Add default layout for pages
if (app.mainComponent.includes('nuxt-welcome')) { if (app.mainComponent.includes('nuxt-welcome')) {
app.mainComponent = resolve(runtimeDir, 'app.vue') app.mainComponent = resolve(runtimeDir, 'app.vue')

View File

@ -1,3 +0,0 @@
<template>
<App />
</template>