Minified import for all locales
Open
- Dominant language
- JavaScript
- Stars
- 48.7k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
I'm currently using all locales and they take up about half of my app's file size (very small app). I was wondering if there would be a way to build the locales in dayjs (https://github.com/iamkun/dayjs/tree/dev/src/locale) so that the redundancies are not repeated over each import, without breaking anything.
Contributor guide
Research direction
Start by reviewing the locale modules under src/locale and how importing all locales is currently built. Define a build or packaging approach that removes repeated locale content while preserving existing locale behavior, then verify that all locales still work and the resulting application bundle is smaller.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- build-system, performance
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100