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
Extend with plugins simpler #1052
Comments
Hi, thanks for the advice. It may be better to leave the import work to our users. Cause different packing tools and compilers may have different syntax. |
Thx for reply and for your time! |
I have tested behavior of day.js and I found: I need to initialize extensions/plugins only once (top most level; index.js) and every other require() will be use it with these extensions too. Great! |
Yes, because |
I am happy to use plugins very simple anc clear. But I have got an idea to more clear import syntax.
Now:
I can write it simple (two step in one)
It would be good to use more simpler:
Pseudo for alternative usage:
(extendInline may be extend, but I am not familiar with typescript overload)
The text was updated successfully, but these errors were encountered: