Skip to content

Commit

Permalink
fix(ssr-manifest): check name before saving to ssrManifest
Browse files Browse the repository at this point in the history
  • Loading branch information
hoanguyen committed Aug 9, 2022
1 parent 7f01a00 commit b718f95
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/vite/src/node/ssr/ssrManifestPlugin.ts
Expand Up @@ -68,7 +68,9 @@ export function ssrManifestPlugin(config: ResolvedConfig): Plugin {
join(dirname(chunk.fileName), url.slice(1, -1))
)
addDeps(normalizedFile)
ssrManifest[basename(name!)] = deps
if (name) {
ssrManifest[basename(name!)] = deps
}
}
}
}
Expand Down

0 comments on commit b718f95

Please sign in to comment.