From 92f2747ce71213a3fb1e99a39ef9c5c088bf1099 Mon Sep 17 00:00:00 2001 From: patak Date: Thu, 25 Jan 2024 12:37:33 +0100 Subject: [PATCH] chore: remove unneeded normalizePath (#15713) --- packages/vite/src/node/fsUtils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vite/src/node/fsUtils.ts b/packages/vite/src/node/fsUtils.ts index c8f6c532af7158..eb4a45f7d0f9c5 100644 --- a/packages/vite/src/node/fsUtils.ts +++ b/packages/vite/src/node/fsUtils.ts @@ -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 }) } } @@ -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)) } }