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

Replace google-libphonenumber with libphonenumber-js #89

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

filipengberg
Copy link

@filipengberg filipengberg commented Feb 13, 2022

google-libphonenumber is a pretty large dependency which adds around 530 kb to the bundle size just for validating a phone number.

This PR replaces this dependency with libphonenumber-js which only takes up around 98kb (81% reduction) while still keeping validation functionality.

Example project before:

Screenshot 2022-02-13 at 23 43 44

After:

Screenshot 2022-02-13 at 23 45 07

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.

1 participant