Skip to content

Commit

Permalink
fix: client full reload (#8018)
Browse files Browse the repository at this point in the history
  • Loading branch information
poyoho committed May 5, 2022
1 parent 834efe9 commit 2f478ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vite/src/client/client.ts
Expand Up @@ -106,6 +106,7 @@ async function handleMessage(payload: HMRPayload) {
const payloadPath = base + payload.path.slice(1)
if (
pagePath === payloadPath ||
payload.path === '/index.html' ||
(pagePath.endsWith('/') && pagePath + 'index.html' === payloadPath)
) {
location.reload()
Expand Down

0 comments on commit 2f478ed

Please sign in to comment.