Skip to content

Reduce bundle size #3

@iamvanja

Description

@iamvanja

With the introduction of date validation, house-rules gained weight dramatically (due to Moment.js).
screen shot 2018-03-01 at 9 28 02 am

Can we do something about this?

  • How about replacing moment with something lightweight, such as date-fns or Luxon?
  • Is date-specific dependency even necessary? It looks like validator already implements isAfter and isBefore methods.
  • Can we make date validation opt-in?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions