Skip to content

Commit

Permalink
fix(nuxt3): enable app-level <suspense> with pages module (nuxt#1929)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Nov 15, 2021
1 parent 4b367a1 commit 0a74940
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions packages/nuxt3/src/pages/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ export default defineNuxtModule({
})

nuxt.hook('app:resolve', (app) => {
// Remove default root with Suspense
app.rootComponent = resolve(runtimeDir, 'root.vue')
// Add default layout for pages
if (app.mainComponent.includes('nuxt-welcome')) {
app.mainComponent = resolve(runtimeDir, 'app.vue')
Expand Down
3 changes: 0 additions & 3 deletions packages/nuxt3/src/pages/runtime/root.vue

This file was deleted.

0 comments on commit 0a74940

Please sign in to comment.