Skip to content

Commit

Permalink
fix: optional chain importedCss access [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Dec 23, 2022
1 parent fe89584 commit bfd9842
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/css.ts
Expand Up @@ -623,7 +623,7 @@ export function cssPostPlugin(config: ResolvedConfig): Plugin {
},

augmentChunkHash(chunk) {
if (chunk.viteMetadata.importedCss.size) {
if (chunk.viteMetadata?.importedCss.size) {
let hash = ''
for (const id of chunk.viteMetadata.importedCss) {
hash += id
Expand Down

0 comments on commit bfd9842

Please sign in to comment.