From e16bf1fb14b7a3a950de4d74fce31416746829b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=A0=20/=20green?= Date: Wed, 14 Aug 2024 17:15:31 +0900 Subject: [PATCH] refactor: remove `handleHotUpdate` from watch-package-data plugin (#17865) --- 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)) - } - }, } }