Replace moment with Date fns
- Dominant language
- JavaScript
- Stars
- 23
- Forks
- 62
- Avg merge
- 24m
- Merged PRs (30d)
- 1
Description
## What is the problem?
* Currently the system handling the date display using moment. since the package size of moment is big and not modular, hence the size affects the bundle size of the final build.
## What is the impact?
* The increased bundle size is affecting the initial load of the app. As per chrome's code coverage report there are more than 60% of unused js code is present.
## Proposed solution
* We can use [Date fns](https://date-fns.org/), since its modular and light-weight, and has the required functions of moment.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating all Moment usage in the application and reviewing the build's bundle-size and Chrome code-coverage impact. Compare the required date functions with date-fns equivalents; done means Moment is replaced without changing date-display behavior and the final bundle is smaller.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, performance
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100