We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37382d1 commit 5fbeba3Copy full SHA for 5fbeba3
packages/vite/src/node/fsUtils.ts
@@ -148,11 +148,11 @@ export function createCachedFsUtils(config: ResolvedConfig): FsUtils {
148
return
149
}
150
if (nextDirentCache.type === 'directory_maybe_symlink') {
151
- dirPath ??= pathUntilPart(root, parts, i)
+ dirPath ??= pathUntilPart(root, parts, i + 1)
152
const isSymlink = fs
153
.lstatSync(dirPath, { throwIfNoEntry: false })
154
?.isSymbolicLink()
155
- direntCache.type = isSymlink ? 'symlink' : 'directory'
+ nextDirentCache.type = isSymlink ? 'symlink' : 'directory'
156
157
direntCache = nextDirentCache
158
} else if (direntCache.type === 'symlink') {
0 commit comments