Skip to content

Commit

Permalink
chore: fix ts error (#14053)
Browse files Browse the repository at this point in the history
  • Loading branch information
btea authored Aug 9, 2023
1 parent 8b174fd commit 6cb397f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/ssr/ssrManifestPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function ssrManifestPlugin(config: ResolvedConfig): Plugin {
if (chunk.code.includes(preloadMethod)) {
// generate css deps map
const code = chunk.code
let imports: ImportSpecifier[]
let imports: ImportSpecifier[] = []
try {
imports = parseImports(code)[0].filter((i) => i.n && i.d > -1)
} catch (e: any) {
Expand Down

0 comments on commit 6cb397f

Please sign in to comment.