Skip to content

Commit

Permalink
refactor: remove handleHotUpdate from watch-package-data plugin (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Aug 14, 2024
1 parent 6700594 commit e16bf1f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/vite/src/node/packages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
},
}
}

Expand Down

0 comments on commit e16bf1f

Please sign in to comment.