Skip to content

CE-3332: Replace moment with dayjs

Max Frederiksen requested to merge CE-3332-replace-momentjs into main

Replace moment with dayjs

Dayjs is a 2kb lib that has everything we used from moment. We could technically use Intl but the relativeTime function would become a bit large and think it's easier to just use this lib since it's so small, easier to extend in the future as well.

As a follow-up to this merge I will update all repos to this common version in order to remove having "moment" as a dependency in the package-lock.

Edited by Max Frederiksen

Merge request reports