Files
bun.sh/test/cli
Claude Bot d8c6cfff97 Disable RuntimeTranspilerCache when --define flag is used
When user-provided defines are passed via --define, the transpiler cache
is now disabled. This is necessary because defines affect transpilation
output, and the cache doesn't account for different define values.

Implementation:
- Added has_user_defines boolean to BundlerOptions in options.zig
- Added has_user_defines boolean to Runtime.Features
- Added has_user_defines boolean to Cli.BundlerOptions
- Added has_user_defines boolean to Transpiler.ParseOptions
- Set has_user_defines in loadDefines() when transform_options.define has keys
- Pass has_user_defines through ParseOptions to Runtime.Features in transpiler.zig
- Modified RuntimeTranspilerStore to:
  - Set has_user_defines in ParseOptions
  - Disable cache when has_user_defines is true
- Added test to verify cache is disabled with --define flag

The has_user_defines boolean flows through the chain:
BundlerOptions -> ParseOptions -> Runtime.Features -> Parser

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-05 23:10:44 +00:00
..
2025-05-24 13:36:51 -07:00
2025-10-11 08:23:25 -07:00