Skip to content

Commit 3ed2cdd

Browse files
refactor(javascript): analyze the mangler's scopes with ScopeAnalyzer
The JS minifier's mangler had its own port of terser's `figure_out_scope`. It now runs on `ScopeAnalyzer`: a `MinifierScopeAnalyzer` subclass reuses the shared walk, `Scope`/`Variable` model and binding index, and adds only terser's scoping rules. Output is byte-identical. Claude-Session: https://claude.ai/code/session_01Tgxgyb4N35ndP6cC4KcrXC
1 parent 62f7a27 commit 3ed2cdd

3 files changed

Lines changed: 1425 additions & 1147 deletions

File tree

0 commit comments

Comments
 (0)