What it changes
Removes eligibleconsole call expression statements.
This option removes console output. It removes a call only when evaluating its arguments and computed key has no other side effects. Calls through a shadowed or reassigned
console stay unchanged.Before and after
Configuration
Run this transform by settingtransforms.dropConsole 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.