We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
location
1 parent 48b53f2 commit a8e2f6fCopy full SHA for a8e2f6f
packages/vite/src/client/client.ts
@@ -190,7 +190,7 @@ async function handleMessage(payload: HMRPayload) {
190
// module script failed to load (since one of the nested imports is 500).
191
// in this case a normal update won't work and a full reload is needed.
192
if (isFirstUpdate && hasErrorOverlay()) {
193
- window.location.reload()
+ location.reload()
194
return
195
} else {
196
if (enableOverlay) {
0 commit comments