Skip to content

Commit 8b11fea

Browse files
authored
fix: fs cached checks disabled by default for yarn pnp (#15920)
1 parent b3f557d commit 8b11fea

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/vite/src/node/fsUtils.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,12 @@ export function getFsUtils(config: ResolvedConfig): FsUtils {
4848
if (
4949
config.command !== 'serve' ||
5050
config.server.fs.cachedChecks === false ||
51-
config.server.watch?.ignored
51+
config.server.watch?.ignored ||
52+
process.versions.pnp
5253
) {
5354
// cached fsUtils is only used in the dev server for now
5455
// it is enabled by default only when there aren't custom watcher ignored patterns configured
56+
// and if yarn pnp isn't used
5557
fsUtils = commonFsUtils
5658
} else if (
5759
!config.resolve.preserveSymlinks &&

0 commit comments

Comments
 (0)