mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 05:12:29 +00:00
Fixed a panic that occurred when using `--config=NUL` (or any extensionless file) on Windows. The issue was in bunfig.zig:1166 where we tried to slice `ext[1..]` to get the extension without the leading dot. When the file has no extension (ext is empty), this would panic with "start index 1 is larger than end index 0". The fix uses the existing `extWithoutLeadingDot()` helper method which safely handles empty extensions. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>