mirror of
https://github.com/oven-sh/bun
synced 2026-02-13 20:39:05 +00:00
- Implements GraphVisualizer that dumps complete LinkerContext state to JSON - Captures files, symbols, imports/exports, chunks, parts, and dependency graph - Controlled via BUN_BUNDLER_GRAPH_DUMP environment variable (all/scan/chunks/compute/link) - Uses proper bun.json.toAST and js_printer.printJSON for correct JSON serialization - Enhanced json.toAST to support custom toExprForJSON methods and BabyList-like types - Includes interactive D3.js HTML visualizer with multiple views - Helps debug duplicate exports, circular dependencies, and bundling issues - Outputs to /tmp/bun-bundler-debug/ with timestamped files Usage: BUN_BUNDLER_GRAPH_DUMP=all bun build file.js 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>