mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
The usage of array spread syntax in source code may be downleveled to a call to TypeScript's `__spread` helper function from `tslib`, depending on the options `downlevelIteration` and `emitHelpers`. This proves problematic for ngcc when it is processing ES5 formats, as the static evaluator won't be able to interpret those calls. A custom foreign function resolver is not sufficient in this case, as `tslib` may be emitted into the library code itself. In that case, a helper function can be resolved to an actual function with body, such that it won't be considered as foreign function. Instead, a reflection host can now indicate that the definition of a function corresponds with a certain TypeScript helper, such that it becomes statically evaluable in ngtsc. Resolves #30299 PR Close #30492 |
||
|---|---|---|
| .. | ||
| analysis | ||
| dependencies | ||
| helpers | ||
| host | ||
| integration | ||
| logging | ||
| packages | ||
| rendering | ||
| writing | ||
| BUILD.bazel | ||
| utils_spec.ts | ||