Commit 48e97b7
committed
fix(webpack-cli): make default config discovery matching case-insensitive
The readdir-based discovery matched entry names case-sensitively, which
differed from the previous `fs.access` behavior on case-insensitive
filesystems (a config named e.g. `Webpack.Config.js` would no longer be
found). Lowercase the directory entries for the membership check and rely
on the existing `access` confirm for exact existence semantics, so behavior
matches the old `fs.access` on both case-sensitive and case-insensitive
filesystems while keeping the fast no-config path.
https://claude.ai/code/session_01PEtzv6Xqv2yXQaQsZaeoSF1 parent cb24a16 commit 48e97b7
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2381 | 2381 | | |
2382 | 2382 | | |
2383 | 2383 | | |
| 2384 | + | |
| 2385 | + | |
| 2386 | + | |
2384 | 2387 | | |
2385 | 2388 | | |
2386 | 2389 | | |
2387 | 2390 | | |
2388 | 2391 | | |
2389 | 2392 | | |
2390 | | - | |
| 2393 | + | |
| 2394 | + | |
| 2395 | + | |
2391 | 2396 | | |
2392 | 2397 | | |
2393 | 2398 | | |
| |||
2412 | 2417 | | |
2413 | 2418 | | |
2414 | 2419 | | |
2415 | | - | |
| 2420 | + | |
2416 | 2421 | | |
2417 | 2422 | | |
2418 | 2423 | | |
| |||
0 commit comments