What it changes
Converts eligiblelet and const declarations to var, renaming bindings
when needed to avoid hoisting conflicts. Loop bindings stay unchanged when
conversion would alter iteration behavior.
Before and after
Configuration
Run this transform by settingtransforms.constLetToVar to true:
obfuscate.mjs
View the implementation
Open the TypeScript implementation on GitHub.
Read the behavior tests
Review behavior checks and cases this transform leaves alone.