From 8e4655c96f7f9d0634f44997f2a9c9b2fdfcb685 Mon Sep 17 00:00:00 2001 From: patak Date: Thu, 7 Dec 2023 07:31:51 +0100 Subject: [PATCH] chore: remove unneeded condition in getRealPath (#15267) --- packages/vite/src/node/plugins/resolve.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vite/src/node/plugins/resolve.ts b/packages/vite/src/node/plugins/resolve.ts index 4131f08f2cb7de..449ba03ecf2c48 100644 --- a/packages/vite/src/node/plugins/resolve.ts +++ b/packages/vite/src/node/plugins/resolve.ts @@ -1299,7 +1299,7 @@ function equalWithoutSuffix(path: string, key: string, suffix: string) { } function getRealPath(resolved: string, preserveSymlinks?: boolean): string { - if (!preserveSymlinks && browserExternalId !== resolved) { + if (!preserveSymlinks) { resolved = safeRealpathSync(resolved) } return normalizePath(resolved)