Skip to content

Commit 50b0a60

Browse files
committed
wip: update
1 parent a78b71b commit 50b0a60

File tree

1 file changed

+10
-10
lines changed
  • packages/vite/src/node/plugins

1 file changed

+10
-10
lines changed

packages/vite/src/node/plugins/css.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -973,18 +973,18 @@ export function cssPostPlugin(config: ResolvedConfig): Plugin {
973973
}
974974
return null
975975
},
976-
}
977-
: {}),
978976

979-
augmentChunkHash(chunk) {
980-
if (chunk.viteMetadata?.importedCss.size) {
981-
let hash = ''
982-
for (const id of chunk.viteMetadata.importedCss) {
983-
hash += id
977+
augmentChunkHash(chunk) {
978+
if (chunk.viteMetadata?.importedCss.size) {
979+
let hash = ''
980+
for (const id of chunk.viteMetadata.importedCss) {
981+
hash += id
982+
}
983+
return hash
984+
}
985+
},
984986
}
985-
return hash
986-
}
987-
},
987+
: {}),
988988

989989
async generateBundle(opts, bundle) {
990990
// to avoid emitting duplicate assets for modern build and legacy build

0 commit comments

Comments
 (0)