I have a client's project that is using the Angular 6 framework. There are several modules in the project, 16 of which are supposed to be lazy-loaded (e.g. loadChildren).
But when I run build for production, only 9 of those modules have their own chunks, the other 7 modules are merged with the main chunk (i.e. main.js), therefore those modules will be loaded eagerly.
I have compared some of the lazy-loaded modules with a few eagerly loaded modules to find out what I did wrong, but couldn't spot any difference among those.
Can anyone help me understand why this is happening and how to fix it? Any hint will be highly appreciated.