Skip to content

Commit add29c8

Browse files
authoredMay 31, 2023
fix(vite-node): clear importers when invalidating module (#3475)
1 parent 393bf60 commit add29c8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎packages/vite-node/src/client.ts

+1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ export class ModuleCacheMap extends Map<string, ModuleCache> {
9898
delete mod.resolving
9999
delete mod.promise
100100
delete mod.exports
101+
mod.importers?.clear()
101102
return true
102103
}
103104

0 commit comments

Comments
 (0)
Please sign in to comment.