Skip to content

Commit

Permalink
fix(vite-node): clear importers when invalidating module (#3475)
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed May 31, 2023
1 parent 393bf60 commit add29c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vite-node/src/client.ts
Expand Up @@ -98,6 +98,7 @@ export class ModuleCacheMap extends Map<string, ModuleCache> {
delete mod.resolving
delete mod.promise
delete mod.exports
mod.importers?.clear()
return true
}

Expand Down

0 comments on commit add29c8

Please sign in to comment.