Closed
Description
Which @angular/* package(s) are relevant/releated to the feature request?
core
Description
The ViewEncapsulation is an enum it could be converted to a const enum as such it would be tree-shakable and produce less transpiled js code.
Proposed solution
Apply the same approach used for enum InjectFlags and const enum InternalInjectFlags:
angular/packages/core/src/di/interface/injector.ts
Lines 19 to 81 in 2d3cd2b
Meaning: having two enums, one standard used internally and the other const which can be used by user code and tree shaken.
Other information
- The solution has been proposed by @JoostK in this conversation: refactor(core): remove outdated comment #44099 (comment)

