I have created a module in Angular (CustomCoreModule), which has grown over a period of time, causing performance issues and making the app non modular and un-maintainable.
I decided to create small modules and import them wherever needed instead of loading one big module (which decreases the bundle size).
If I created a module 'A', which eventually gets used in two lazy loaded modules, does Angular optimize the module twice for two different lazy loaded modules, when they are loaded or, will Angular try and load the module 'A' again for each module.
We are using Angular 8, with typescript. Also, will Angular 9 bring any benefit regarding this issue.