Skip to content

Commit

Permalink
chore: remove unneeded normalizePath (#15713)
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev authored Jan 25, 2024
1 parent a05c709 commit 92f2747
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vite/src/node/fsUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export function createCachedFsUtils(config: ResolvedConfig): FsUtils {
direntCache.type === 'directory' &&
direntCache.dirents
) {
direntCache.dirents.set(normalizePath(path.basename(file)), { type })
direntCache.dirents.set(path.basename(file), { type })
}
}

Expand All @@ -222,7 +222,7 @@ export function createCachedFsUtils(config: ResolvedConfig): FsUtils {
direntCache.type === 'directory' &&
direntCache.dirents
) {
direntCache.dirents.delete(normalizePath(path.basename(file)))
direntCache.dirents.delete(path.basename(file))
}
}

Expand Down

0 comments on commit 92f2747

Please sign in to comment.