4 ms·
And moment.js is 68 and luxon 64.
by Sammi 8y ago
And moment.js is 68 and luxon 64.
- TheCoelacanth 8y agoMoment.js is 16.7k. Moment.js plus locale data for every single locale in the world is 68k. There is no justifiable reason to ever load every single locale in the world at once except for a few extremely niche cases. Real world use cases typically need one locale at a time, occasionally two or three, never hundreds. Luxon, I believe, is a similar story.
- Sammi 8y agoThe whole reason I use a date formatting library is so that I can localize dates into whatever locale the user is on. I can't just assume one locale and only load that.