DEV Community

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

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.