Skip to content

Commit 2f478ed

Browse files
authored
fix: client full reload (#8018)
1 parent 834efe9 commit 2f478ed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/vite/src/client/client.ts

+1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ async function handleMessage(payload: HMRPayload) {
106106
const payloadPath = base + payload.path.slice(1)
107107
if (
108108
pagePath === payloadPath ||
109+
payload.path === '/index.html' ||
109110
(pagePath.endsWith('/') && pagePath + 'index.html' === payloadPath)
110111
) {
111112
location.reload()

0 commit comments

Comments
 (0)