Skip to content

Commit

Permalink
CR
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBarre committed Oct 19, 2023
1 parent 27fe596 commit 40a4382
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vite/src/node/server/hmr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ export async function handleFileAddUnlink(

if (isUnlink) {
for (const deletedMod of modules) {
server.moduleGraph.idToModuleMap.forEach((mod) => {
mod.importers.delete(deletedMod)
deletedMod.importedModules.forEach((importedMod) => {
importedMod.importers.delete(deletedMod)
})
}
}
Expand Down

0 comments on commit 40a4382

Please sign in to comment.