How Codemods Turned a Nightmare into a 3-Minute Migration
summary
A real migration case: automated codemods using AST transforms with jscodeshift and recast convert Vibe design system APIs so a release with 70 breaking API changes runs across the repo and finishes in 3 minutes. Team builds per‑component codemods, utility helpers to normalize imports and alias names, comprehensive tests for each transform, and a single CLI command so users upgrade with one line. Result: all changes apply reliably, edge cases mapped, and rollout succeeds without mass breakage.
AI-written summary · about
chapters (17)
- 0:00Introduction
- 2:33Speaker introduction
- 3:16What is Wave and its challenges
- 5:02The breaking point of Wave
- 6:06What are codemods
- 8:15Why codemods are needed
- 10:01Understanding AST
- 12:13How to write codemods
- 13:58Codemod example
- 16:05Handling edge cases
- 17:52Codemod strategy
- 20:25Creating utility functions
- 22:14Testing codemods
- 23:19CLI for easy migration
- 24:49Migration results
- 25:34Daily use of codemods
- 25:56Conclusion
related talks
21mAutomating Front-End Refactoring
28mCross-File Codemodding
29mLarge Scale Migrations Using Recast and jscodeshift to Scale
34mCodemods in the Era of AI
13mCodemods how to support your users with breaking changes delivery
22mMaking Code Automations at Scale: Leveraging AI for Code Migrations
40mRefactoring large JavaScript codebases
47mComputer, refactor my code!
