DEV Community

Discussion on: Emulating standalone components using single component Angular modules (SCAMs)

Collapse
 
wojtek1150 profile image
Wojciech

What bout bundle sizes? Same/smaller/bigger? For small apps I belive that there will be no changes, have you any real-app example of comparing before-after state?

Collapse
 
layzee profile image
Lars Gyrup Brink Nielsen

Individual Angular modules pretty much don't exist at runtime so no difference at all. They are compiled into static properties such as module injectors and transitive module scopes. If anything, big Angular modules declaring many declarables would result in larger bundles if it wasn't for the Angular Build Optimizer.

SCAMs can help guide the Angular compilers to split bundles more effectively.

If you're interested in before and after, try SAM4SC.