-
Notifications
You must be signed in to change notification settings - Fork 14
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
Allow to import pipe selectively #215
Comments
Hi @unsafecode , thanks for reporting. Cheers! |
Hi @unsafecode Not sure if there's something I can do until Suggestions / PRs are welcomed! |
@joanllenas : As date-fns v2 is released. do we have any update on this open issue. |
Hi @gmanoj26 , I'm open to discussing possible solutions if someone has the time to investigate. |
I added a section about tree shaking in the docs. |
In order to make each pipe tree-shakable, those must be provided as secondary entry points (as stated by the article, 1 pipe per entry point / module). It can be easily done using ng-samurai schematics. Willing to look into this as I am using this library but not being tree-shakable atm. |
Description of the Issue and Steps to Reproduce:
Looks like the current implementation always imports all the pipe, making the final bundle excessively large:
It would be better to be able to import pipes in a more selective way, in order not to increase the final app size including unused code.
Environment:
Please answer the following questions:
ng-xdate-fns
version? 2.0.3The text was updated successfully, but these errors were encountered: