Skip to content

Commit

Permalink
refactor: remove handleHotUpdate from watch-package-data plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Aug 11, 2024
1 parent e961b31 commit 6dbed4b
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 6dbed4b

Please sign in to comment.