The story’s score and claims

Comments on No. 11 of 96 · medhat.dev · edition of Friday 27 November 2026

To Remove Moment.js, We First Made Everything Depend on It

Summary

Medhat Dawoud describes removing Moment.js from a TypeScript monorepo of about 60 packages in ten weeks, across roughly 75 PRs. His team first made an internal date-time package a facade over Moment, migrated about 500 files mechanically, then swapped the engine underneath, checking output against Moment with golden tests. He reports about 110 KB less raw bundle and no incidents. These figures are his own and unsourced. The lesson for builders: wrap a dependency before replacing it, and measure shipped bytes, not imported ones.

Comments

Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules