From bce023307057bacc6fde1201cf7a659f586a8ae4 Mon Sep 17 00:00:00 2001
From: PatrykKuniczak
Date: Wed, 18 Dec 2024 12:21:23 +0100
Subject: [PATCH] fix: add missing HMR_ID for reload.ts
---
packages/hmr/lib/injections/reload.ts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/packages/hmr/lib/injections/reload.ts b/packages/hmr/lib/injections/reload.ts
index 98e23fdfc..682956f01 100644
--- a/packages/hmr/lib/injections/reload.ts
+++ b/packages/hmr/lib/injections/reload.ts
@@ -1,4 +1,5 @@
import initClient from '../initializers/initClient.js';
+import { HMR_ID } from '../consts.js';
(() => {
const reload = () => {
@@ -6,8 +7,7 @@ import initClient from '../initializers/initClient.js';
};
initClient({
- // @ts-expect-error That's because of the dynamic code loading
- id: __HMR_ID,
+ id: HMR_ID,
onUpdate: reload,
});
})();