From 8056b8e171371795325875facf1735019b9eb475 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 7 Feb 2022 21:58:12 +0000 Subject: [PATCH] fix(nitro): treat bootrap dep as an entry file (#3106) --- packages/nitro/src/runtime/app/render.ts | 2 ++ 1 file changed, 2 insertions(+) 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