fix: invalidate ssrError when HMR update occurs (#8052)

This commit is contained in:
Matthew Phillips 2022-05-06 16:42:51 -04:00 committed by patak-dev
parent 443acf9851
commit 22fa882378

View File

@ -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)) {