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

Exclude moment from the library #49

Closed
wants to merge 2 commits into from

Conversation

rogyvojevic
Copy link

Hey,

Recently I found out that moment is including a lot of stuff I do not need because I'm not using moment for the i18n. And as I saw anyone can add an adapter I decided to help out a little it and make a PR to completely remove moment from the package.

Here are some screenshots before and after. I literally saved 100kb+ 😱

With moment included by default.
with-moment

Without moment.
without-moment

@rogyvojevic rogyvojevic mentioned this pull request Jun 14, 2020
@jcompagner
Copy link

We do use moment, I am fine that I need to include this adapter my self as an extra package but I do hope we keep it simple and just don't fully remove it..

No I don't like the option to copy some code. That suddenly means all kind of forks..

@rogyvojevic
Copy link
Author

Sure, no problem. I'll try to think of a better solution. To keep it but not to bundle it with all those locales, hopefully 😄

I will close this PR 👍

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

Successfully merging this pull request may close these issues.

3 participants