aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/runtime/hmr.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/runtime/hmr.ts b/src/runtime/hmr.ts
index 6f030480e..12fba1c2e 100644
--- a/src/runtime/hmr.ts
+++ b/src/runtime/hmr.ts
@@ -823,7 +823,8 @@ if (typeof window !== "undefined") {
// Ignore builds of modules we expect a later version of
const currentVersion = this.builds.get(build.id) || -Infinity;
- if (currentVersion > build.from_timestamp) {
+ // allow 4ms of leeway
+ if (currentVersion > build.from_timestamp + 4) {
if (this.verbose) {
__hmrlog.debug(
`Ignoring outdated update for "${build.module_path}".\n Expected: >=`,