A journey rewrote entire codebase to ESM
I thought moving from Rollup to the plain TypeScript compiler with pure ESM would take a weekend. Claude Code wrote 98% of the changes in a day, and the last 2% took me three months. Here is what I learned about the migration itself, and about how to actually work with an AI agent on a task this size.