Skip to content

Commit 4b2f685

Browse files
[autofix.ci] apply automated fixes
1 parent 6ed2092 commit 4b2f685

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/utils/resolve.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ export function fileExistsWithCaseSync(
7979
result = filenames.includes(parsedPath.base)
8080
? fileExistsWithCaseSync(dir, cacheSettings, strict, false)
8181
: !leaf
82-
// We tolerate case-insensitive matches if there are no case-insensitive matches.
83-
// It'll fail anyway on the leaf node if the file truly doesn't exist (if it doesn't
84-
// fail it's that we're probably working with a virtual in-memory filesystem).
85-
? filenames.findIndex(p => p.toLowerCase() === parsedPath.base) === -1
82+
? // We tolerate case-insensitive matches if there are no case-insensitive matches.
83+
// It'll fail anyway on the leaf node if the file truly doesn't exist (if it doesn't
84+
// fail it's that we're probably working with a virtual in-memory filesystem).
85+
filenames.findIndex(p => p.toLowerCase() === parsedPath.base) === -1
8686
: false
8787
}
8888
fileExistsCache.set(filepath, result)

test/fixtures/yarn-pnp/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import pnp from 'pnpapi'
22

33
import add from 'epix-oxc/add'
44

5-
import add2 from './__virtual__/whatever-123/0/add.js';
5+
import add2 from './__virtual__/whatever-123/0/add.js'
66

77
console.log(add)
88
console.log(add2)

0 commit comments

Comments
 (0)