diff --git a/packages/nitro/src/runtime/app/render.ts b/packages/nitro/src/runtime/app/render.ts index 4a35a25202..73e8d9880f 100644 --- a/packages/nitro/src/runtime/app/render.ts +++ b/packages/nitro/src/runtime/app/render.ts @@ -36,6 +36,8 @@ const getSPARenderer = cachedResult(async () => { let entryFiles = Object.values(clientManifest).filter( (fileValue: any) => fileValue.isEntry ) + // https://github.com/nuxt/framework/pull/3106 + entryFiles.push(...entryFiles.flatMap((e: any) => e.dynamicImports || []).map(i => clientManifest[i]).filter(Boolean)) if ('all' in clientManifest && 'initial' in clientManifest) { // Upgrade legacy manifest (also see normalizeClientManifest in vue-bundle-renderer) // https://github.com/nuxt-contrib/vue-bundle-renderer/issues/12