Closed KingDarBoja closed 3 years ago
Hi @KingDarBoja , this looks really good! I needed someone with the skills to look into that particular issue. I'll review your PR later this week; I'm on a trip right now. Cheers!
The new version has been released
Thanks!
This PR does not change the behaviour of the library itself but enables selectively importing pipes as modules, instead of relying on
DateFnsModule.forRoot()
as requested by #215. Take a look at https://indepth.dev/emulating-tree-shakable-components-using-single-component-angular-modules to know more about this approach.The library itself is already tree-shakable as all imports from
date-fns
are correctly imported as stated on the official docs: https://date-fns.org/v2.16.1/docs/ECMAScript-ModulesAlso made few changes in order to provide a better dev setup like pointing to the build package on the example app by modifying the paths field on tsconfig.json file.
Cheers! 🚀