fix(nitro): treat bootrap dep as an entry file (#3106)

This commit is contained in:
Daniel Roe 2022-02-07 21:58:12 +00:00 committed by GitHub
parent 82a7fd561b
commit 8056b8e171
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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