Skip to content

Commit 8e4655c

Browse files
authored
chore: remove unneeded condition in getRealPath (#15267)
1 parent ef2a024 commit 8e4655c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vite/src/node/plugins/resolve.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1299,7 +1299,7 @@ function equalWithoutSuffix(path: string, key: string, suffix: string) {
12991299
}
13001300

13011301
function getRealPath(resolved: string, preserveSymlinks?: boolean): string {
1302-
if (!preserveSymlinks && browserExternalId !== resolved) {
1302+
if (!preserveSymlinks) {
13031303
resolved = safeRealpathSync(resolved)
13041304
}
13051305
return normalizePath(resolved)

0 commit comments

Comments
 (0)