Skip to content

Commit ac6771c

Browse files
authored
Force reload for ESM HMR (#56)
1 parent cfc8658 commit ac6771c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/runtime/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,8 @@ function $$refreshESM(type: ESMRuntimeType, hot: ESMHot, registry: Registry) {
294294
mod == null ||
295295
patchRegistry(hot.data[SOLID_REFRESH], hot.data[SOLID_REFRESH_PREV])
296296
) {
297-
hot.invalidate();
297+
// hot.invalidate();
298+
window.location.reload();
298299
}
299300
});
300301
} else {

0 commit comments

Comments
 (0)