mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
## Summary Fixes #25640 - Fixed bug where compiled binaries with `autoloadBunfig: false` would still load `bunfig.toml` when `execArgv` was also provided - The issue was that `Command.init(.AutoCommand)` was called to parse execArgv, which loaded bunfig before checking the disable flag ## Test plan - [x] Added tests for `autoloadBunfig: false` with `execArgv` in `test/bundler/bundler_compile_autoload.test.ts` - [x] Verified tests pass with debug build: `bun bd test test/bundler/bundler_compile_autoload.test.ts` - [x] Verified tests fail with system bun (demonstrates fix works): `USE_SYSTEM_BUN=1 bun test test/bundler/bundler_compile_autoload.test.ts -t "AutoloadBunfigDisabledWithExecArgv"` - [x] All existing autoload tests still pass (22 tests total) 🤖 Generated with [Claude Code](https://claude.ai/code) --------- Co-authored-by: Claude Bot <claude-bot@bun.sh> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
67 KiB
67 KiB