Files
bun.sh/src
Claude Bot eaad2e22e8 Fix export { x } from syntax to properly preserve symbols
The previous implementation only worked for `export * from` but not for
`export { x } from` because it relied solely on resolved_exports, which
wasn't sufficient for named re-exports.

New approach:
- Iterate through all source files in the chunk
- For each exported symbol, check if it's re-exported by the entry point
- Compare the followed refs to determine if they're the same symbol
- Mark matching symbols as must_not_be_renamed

This correctly handles:
- `export * from "./module"` ✓
- `export { x } from "./module"` ✓ (FIXED)
- `export { x as y } from "./module"` ✓
- Direct exports from entry point ✓

Updated InternalExportsNamedReexports test to properly verify that
the variable name is preserved, not just the export name.

All 38 minify tests pass (33 existing + 9 new internal exports tests).

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-20 16:43:40 +00:00
..
2025-07-21 13:26:47 -07:00
2025-09-09 20:41:10 -07:00
2025-10-14 17:43:38 -07:00
2025-10-16 21:52:22 -04:00
2025-07-21 13:26:47 -07:00
2025-10-04 02:17:55 -07:00
2025-07-29 19:35:46 -07:00
2025-09-30 05:26:32 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-09-09 20:41:10 -07:00
2025-10-06 05:39:22 -07:00
2025-09-11 23:29:53 -07:00
2025-07-21 13:26:47 -07:00
2025-10-03 17:13:22 -07:00
2025-07-21 13:26:47 -07:00
2025-09-09 20:41:10 -07:00
2025-07-21 13:26:47 -07:00
2025-10-11 08:23:25 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00