DEV Community

Discussion on: Having Moment.js Replacements Is Not Enough

mimafogeus2 profile image
Miki Stanger Author

moment.js will probably not get such an optimization. They're officially in maintenance mode, and recommend using alternatives in new projects (

The problem is that the dependencies you use probably still use moment, so you get it installed in addition to day.js - and that's a lot "in addition of" :)

Day.js is the best candidate for my offer here, as it is the most similar to moment already :) Creating an API that exposes similar day.js methods but provides a moment-like mutable object would allow these dependencies to use day.js as well, so moment will not be bundled in your project at all.