Skip to main content
Option: transforms.updateToAssignment

What it changes

Rewrites eligible numeric update expressions as compound assignments. Postfix updates stay unchanged when their original value is used.

Before and after

Configuration

Run this transform by setting transforms.updateToAssignment 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.
Last modified on August 26, 2026