diff --git a/src/utils/get-relative-path.ts b/src/utils/get-relative-path.ts index 1c705764..265c6a48 100644 --- a/src/utils/get-relative-path.ts +++ b/src/utils/get-relative-path.ts @@ -69,8 +69,8 @@ function getMatchPortion(from: string, to: string) { export function getRelativePath(from: string, to: string) { try { - from = fs.realpathSync.native(from); to = fs.realpathSync.native(to); + from = fs.realpathSync.native(from); } catch { if (!getIsFsCaseSensitive()) { const matchPortion = getMatchPortion(from, to);