codemod

A script that rewrites source code automatically, for example renaming a deprecated prop across a whole codebase.

In more detail

Codemods work on the code's syntax tree, not plain text, so they can change isOutline to variant="outline" safely. Shipping one with a major version turns hours of manual migration into one command.

Related terms

Taught in

References