Skip to content

Commit

Permalink
chore: remove unneeded condition in getRealPath (#15267)
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev authored Dec 7, 2023
1 parent ef2a024 commit 8e4655c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/resolve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8e4655c

Please sign in to comment.