What it changes
Merges adjacent compatible variable declarations, combines adjacent expression statements with the comma operator, and moves expressions into a following compatible statement when execution order is preserved.Before and after
Configuration
Run this transform by settingtransforms.packExpressions 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.