Skip to content

Commit 22fa882

Browse files
matthewppatak-dev
authored andcommitted
fix: invalidate ssrError when HMR update occurs (#8052)
1 parent 443acf9 commit 22fa882

File tree

1 file changed

+1
-0
lines changed
  • packages/vite/src/node/server

1 file changed

+1
-0
lines changed

packages/vite/src/node/server/hmr.ts

+1
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ function invalidate(mod: ModuleNode, timestamp: number, seen: Set<ModuleNode>) {
294294
mod.lastHMRTimestamp = timestamp
295295
mod.transformResult = null
296296
mod.ssrModule = null
297+
mod.ssrError = null
297298
mod.ssrTransformResult = null
298299
mod.importers.forEach((importer) => {
299300
if (!importer.acceptedHmrDeps.has(mod)) {

0 commit comments

Comments
 (0)