From 9eb954760bccb881c7b2b111ae646e0c9ecc9837 Mon Sep 17 00:00:00 2001 From: Vladimir Sheremet Date: Wed, 31 May 2023 11:29:10 +0200 Subject: [PATCH] fix(vite-node): clear importers when invalidating module --- packages/vite-node/src/client.ts | 1 + 1 file changed, 1 insertion(+) 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 }