1 min readMay 3, 2020
Correct, so now when the compiler sees a component with the component decorator, it gets the code required to instantiate that component from that during runtime (like Ngfactories) and doesn’t get tree-shaken.
Read more about ngtsc transformers which emit the static properties ɵcmp and ɵfac from here: https://github.com/angular/angular/blob/master/packages/compiler/design/architecture.md#high-level-proposal