Skip to content

Commit

Permalink
perf(vite): avoid unnecessary regeneration
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Aug 5, 2022
1 parent b7d48a5 commit 8275d1d
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 @@ -97,7 +97,7 @@ export function GlobalModeDevPlugin({ uno, tokens, affectedModules, onInvalidate

_server.ws.on(WS_EVENT_PREFIX, ([layer, hash]: string[]) => {
if (lastServedHash.get(layer) !== hash)
invalidate(10)
sendUpdate(entries)
})
},
buildStart() {
Expand Down

0 comments on commit 8275d1d

Please sign in to comment.