Skip to content

Commit e16bf1f

Browse files
authoredAug 14, 2024··
refactor: remove handleHotUpdate from watch-package-data plugin (#17865)
1 parent 6700594 commit e16bf1f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed
 

‎packages/vite/src/node/packages.ts

-5
Original file line numberDiff line numberDiff line change
@@ -260,11 +260,6 @@ export function watchPackageDataPlugin(packageCache: PackageCache): Plugin {
260260
invalidatePackageData(packageCache, path.normalize(id))
261261
}
262262
},
263-
handleHotUpdate({ file }) {
264-
if (file.endsWith('/package.json')) {
265-
invalidatePackageData(packageCache, path.normalize(file))
266-
}
267-
},
268263
}
269264
}
270265

0 commit comments

Comments
 (0)
Please sign in to comment.