Skip to content

Commit

Permalink
fix: clean manifest plugin state at build start (#3530)
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev committed May 25, 2021
1 parent 496e26e commit c9da635
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/vite/src/node/plugins/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,15 @@ export interface ManifestChunk {
export function manifestPlugin(config: ResolvedConfig): Plugin {
const manifest: Manifest = {}

let outputCount = 0
let outputCount: number

return {
name: 'vite:manifest',

buildStart() {
outputCount = 0
},

generateBundle({ format }, bundle) {
function getChunkName(chunk: OutputChunk) {
if (chunk.facadeModuleId) {
Expand Down

0 comments on commit c9da635

Please sign in to comment.