From 6dbed4bc73d907da21086f7217c26af7367a385e Mon Sep 17 00:00:00 2001 From: sapphi-red <49056869+sapphi-red@users.noreply.github.com> Date: Sun, 11 Aug 2024 16:21:31 +0900 Subject: [PATCH] refactor: remove `handleHotUpdate` from watch-package-data plugin --- packages/vite/src/node/packages.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/vite/src/node/packages.ts b/packages/vite/src/node/packages.ts index 5af667d2417cc9..dc25c004f9214f 100644 --- a/packages/vite/src/node/packages.ts +++ b/packages/vite/src/node/packages.ts @@ -260,11 +260,6 @@ export function watchPackageDataPlugin(packageCache: PackageCache): Plugin { invalidatePackageData(packageCache, path.normalize(id)) } }, - handleHotUpdate({ file }) { - if (file.endsWith('/package.json')) { - invalidatePackageData(packageCache, path.normalize(file)) - } - }, } }