-
Notifications
You must be signed in to change notification settings - Fork 221
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
Remove original libphonenumber
from dist/
#226
Conversation
LGTM |
@superhit0 have any idea about the usage problem? It seems complicated now. |
The reason behind removal of 'libphonenumber.js'
@patw0929 I am open to discussion on this & I think we should proceed when we are clear on this. |
@patw0929 any comments? |
@superhit0 Thank you for your feedback! Sorry, I just got off work. 😅
What is the manually link mean? Is it like
For me, the main concern is the simple usage for developers like before. |
Yes.
The user should not be able to do that, because if the user wants to use the libphonenumber from our repo only, he can simply use the one which is bundled with our webpack. Why the user should put extra effort just to use the code that is supplied by us. In this way the main project code of his will have less boilerplate code, like the import statement or the extra tag of utilscript. But still if the user wants his own set of validations like his custom
The user can simply use This was my reason for removing libphonenumber. Lets discuss this further if it causes some issues. 😄 🤔 |
Also, I don't know why email notifications are not working for me. Are you on Linkedin or some other network? Where we can ping each other. |
dbe37d9
to
79cb2f2
Compare
OK, I just added And here is my Linkedin: https://www.linkedin.com/in/patrickpatw/ |
ok I will do that tomorrow. Sure anything works for me as long as its instant messaging. |
@patw0929 I was going through the change and found that the I think we can go ahead with this change without affecting much users as still they will have the option to import |
@patw0929 any update on this? |
@patw0929 , @superhit0 Can we merge this PR? |
@patw0929 our release has been delayed a lot. Can we please wrap this up? |
Close it because #242 was merged. |
Related to #222.
Updated:
The usage of
react-intl-tel-input
which has dynamic importing feature:yarn add react-intl-tel-input
utilsScript
):For dynamic import
libphonenumber.js
, we should not copy the originallibphonenumber.js
todist/
folder.The usage of
react-intl-tel-input
which has dynamic importing feature:yarn add react-intl-tel-input
babel-plugin-syntax-dynamic-import
in webpack dev mode.libphonenumber.js
to local (e.g.,new CopyWebpackPlugin([{ from: 'node_modules/react-intl-tel-input/dist/libphonenumber.js', to: './' }]),
in dev & production webpack plugin settings.Problem
.
), need to find out the way to custom by developer (e.g.,static/js
).