Replace to reduce bundle size. Moment.js is about 20x heavier than dayjs and does basically the same thing :(
Day.js https://github.com/iamkun/dayjs
Luxon https://moment.github.io/luxon/
Yes true that moment is bloated: https://bundlephobia.com/[email protected]
I already started to migrate from moment with date-fns: https://bundlephobia.com/[email protected]
I wonder if I Luxon is a drop in replacement of moment
moment().format('LTS')
moment().diff(parseInt(t1))
This are the only momentjs calls ^^' so yes I will drop moment
dayjs is a drop in replacement of moment, and is even lighter than date-fns... https://bundlephobia.com/[email protected]
date-fns + moment have been replaced by dayjs
PM2 4.3.0 published:
npm install pm2@latest -g
pm2 update
Most helpful comment
date-fns + moment have been replaced by dayjs