I have two lazy loadig modules in my angular application. Once I build the application, I noticed that 2 Lazy chunk files are generated for same module with same name as shown below.
Lazy chunk files | Names | Raw size | Estimated transfer size
60.1880044024f2f918.js | school-school-module | 294.00 kB | 42.99 kB
636.cfdf85a3918d31b8.js | student-student-module | 234.85 kB | 32.28 kB
307.b581d1c3aea312a1.js | student-student-module | 89.09 kB | 18.05 kB
common.f8f6f07a0903bb8e.js | common | 1.57 kB | 646 bytes
This is not causing any issue when running the application and everything is working as expected. But I need a clarification on why two files are generated for student-module.
I tried setting “optimization”: true and “namedChunks”: true in angular.json, but no luck.