Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
theuser48025yIt bundles all locales by default. It is possible to eliminate the ones you don't need.
Also, I'm betting most projects don't actually need moment when worst case they need to display a couple of different formats and do some light logic. You can easily do your own date utils or even copy paste something. -
Tounai13045y@theuser Yeah I saw that ! I'm even searching a way to remove it totally because it's a depedency of Chart.js but I don't use any time based chart
-
theuser48025y@Root Even better, I was able decrease the moment footprint by installing another dependency that comes with its own dependencies (cue the dependency rabbit hole).
Last night I checked the size of my JS modules. The biggest one ? moment.js. It's disappointing
rant