Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minified import for all locales #1810

Open
justingolden21 opened this issue Feb 22, 2022 · 3 comments
Open

Minified import for all locales #1810

justingolden21 opened this issue Feb 22, 2022 · 3 comments

Comments

@justingolden21
Copy link

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.

@martinduparc
Copy link

+1

Related to #1668

@gbjbaanb
Copy link

I'd like to say the same should be done for all plugins - there are so many tiny, tiny plugins that the code required to load them is greater than many plugins! These days, a single minified dayjs containing all plugins would be loaded and cached by the browser way faster and much more efficiently than loading each one individually.

@xPhentom
Copy link

xPhentom commented Sep 8, 2023

Is there any update on this? importing one file to import all locales would help us out a lot instead of us having to do this manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants