Skip to content

Commit c9da635

Browse files
authored
fix: clean manifest plugin state at build start (#3530)
1 parent 496e26e commit c9da635

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

+6-1
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,15 @@ export interface ManifestChunk {
2222
export function manifestPlugin(config: ResolvedConfig): Plugin {
2323
const manifest: Manifest = {}
2424

25-
let outputCount = 0
25+
let outputCount: number
2626

2727
return {
2828
name: 'vite:manifest',
29+
30+
buildStart() {
31+
outputCount = 0
32+
},
33+
2934
generateBundle({ format }, bundle) {
3035
function getChunkName(chunk: OutputChunk) {
3136
if (chunk.facadeModuleId) {

0 commit comments

Comments
 (0)