Skip to content

Commit

Permalink
fix: invalidate ssrError when HMR update occurs (#8052)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp authored and patak-dev committed May 11, 2022
1 parent 443acf9 commit 22fa882
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vite/src/node/server/hmr.ts
Expand Up @@ -294,6 +294,7 @@ function invalidate(mod: ModuleNode, timestamp: number, seen: Set<ModuleNode>) {
mod.lastHMRTimestamp = timestamp
mod.transformResult = null
mod.ssrModule = null
mod.ssrError = null
mod.ssrTransformResult = null
mod.importers.forEach((importer) => {
if (!importer.acceptedHmrDeps.has(mod)) {
Expand Down

0 comments on commit 22fa882

Please sign in to comment.