We actually end up talking about it more in depth in another thread I started. It’s an issue with the webpack code splitting, and the fact that plugins we don’t have control over (at least not directly) control which file (ionic/angular/node_modules) imports are considered for code splitting. The recommendation in the lazy loading doc on Google Docs suggests have a components.module.ts where all components are declared, and then this aggregate file included in every lazy-loaded page’s module.ts which leads to duplicating the components.module.ts in each page’s module.ts compiled output.
2 Likes