Please sign in to comment.
fix(ngcc): do not emit ES2015 code in ES5 files
Previously, ngcc's `Renderer` would add some constants in the processed files which were emitted as ES2015 code (e.g. `const` declarations). This would result in invalid ES5 generated code that would break when run on browsers that do not support the emitted format. This commit fixes it by passing an extra hint to `translateExpression()` and `translateStatement()` helper methods to translate the code to ES5 format if necessary. Fixes angular#32665
- Loading branch information
Showing with 49 additions and 9 deletions.