Skip to content

Commit

Permalink
fix(vite): improve hash calc
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Sep 26, 2022
1 parent d835621 commit a65adaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/modes/global/dev.ts
Expand Up @@ -37,9 +37,9 @@ export function GlobalModeDevPlugin({ uno, tokens, affectedModules, onInvalidate
server!.moduleGraph.invalidateModule(mod)
}
}
lastServedHash.clear()
clearTimeout(invalidateTimer)
invalidateTimer = setTimeout(() => {
lastServedHash.clear()
sendUpdate(ids)
}, timer)
}
Expand Down

0 comments on commit a65adaa

Please sign in to comment.