diff --git a/packages/vite-node/src/client.ts b/packages/vite-node/src/client.ts index 899bca236b59..8a9065620e53 100644 --- a/packages/vite-node/src/client.ts +++ b/packages/vite-node/src/client.ts @@ -98,6 +98,7 @@ export class ModuleCacheMap extends Map { delete mod.resolving delete mod.promise delete mod.exports + mod.importers?.clear() return true }