tl;dr: Use Intl to compute relative dates, rather than rely on Luxon or Moment which are huge size-wise.

Luxon and Moment are popular date-time handling libraries, however they come with a huge cost in terms of kilobytes (in the hundreds) that you have to deliver to your users.

There’s a new Intl object, and specifically Intl.RelativeTimeFormat if you need to compute “x days ago”.