Skip to content

chore: Replace moment.js by date-fns #663

Description

@machour

As mentionned in #523, we are currently using moment/min/moment-with-locales.min which weights 289.5K (63.8K) only to output the time ago information.

Even "worse", we don't even use the locales from the library for the translations, instead, we override them with our own wordings.

@ocarreterom proposed we switch to date-fns which is kind of a lodash for date handling, and will have a wayyyy smaller footprint, he will be working on the PR for this change 🎉

/cc @lex111

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions