You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Moment.js is done. It's highly recommended we migrate time libraries if only due to bundle size alone. It's not like we're using even half of moment.js's power at the moment, nor do we plan to.
Check out this cool proposal thought it's in stage 2 at the moment. Moment.js also recommends a few libraries here. date-fns is a pretty easy library to use, but we may be able to do our use cases with plain old Date() along with possibly Intl API as well.
The text was updated successfully, but these errors were encountered:
I read about this a month ago. I'm glad we're moving beyond polyfill JS libraries as more things are standardized.
For our site specifically, we want to decrease the bundle size cuz we don't use dates for anything after compilation. I wrapped the article's published date in a <time> tag, which hopefully the browser will convert automatically for international visitors, since its a semantic tag.
Idk how to migrate away from Moment if its a dependency?
Moment.js is done. It's highly recommended we migrate time libraries if only due to bundle size alone. It's not like we're using even half of moment.js's power at the moment, nor do we plan to.
Check out this cool proposal thought it's in stage 2 at the moment. Moment.js also recommends a few libraries here. date-fns is a pretty easy library to use, but we may be able to do our use cases with plain old
Date()
along with possibly Intl API as well.The text was updated successfully, but these errors were encountered: