Skip to content

Commit 437dc1c

Browse files
sapphi-redbluwy
andauthored
fix: return promise properly
Co-authored-by: Bjorn Lu <[email protected]>
1 parent 2f54d53 commit 437dc1c

File tree

1 file changed

+1
-1
lines changed
  • packages/vite/src/shared

1 file changed

+1
-1
lines changed

packages/vite/src/shared/hmr.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ export class HMRClient {
223223
paths.map((path) => {
224224
const fn = this.pruneMap.get(path)
225225
if (fn) {
226-
fn(this.dataMap.get(path))
226+
return fn(this.dataMap.get(path))
227227
}
228228
}),
229229
)

0 commit comments

Comments
 (0)