angular/packages/compiler-cli/linker/babel/test
JoostK e23fd1f382 refactor(compiler-cli): emit forwardRef invocation for forward type references (#40117)
The types of directives and pipes that are used in a component's
template may be emitted into the partial declaration wrapped inside a
closure, which is needed when the type is declared later in the module.
This poses a problem for JIT compilation of partial declarations, as
this closure is indistinguishable from a class reference itself. To mark
the forward reference function as such, this commit changes the partial
declaration codegen to emit a `forwardRef` invocation wrapped around
the closure, which ensures that the closure is properly tagged as a
forward reference. This allows the forward reference to be treated as
such during JIT compilation.

PR Close #40117
2020-12-22 08:39:58 -08:00
..
ast refactor(compiler-cli): emit forwardRef invocation for forward type references (#40117) 2020-12-22 08:39:58 -08:00
babel_declaration_scope_spec.ts test(compiler-cli): workaround for performance cliff in TypeScript (#39707) 2020-11-24 13:05:38 -08:00
BUILD.bazel refactor(compiler-cli): linker - add Babel plugin, FileLinker and initial PartialLinkers (#39116) 2020-10-19 11:23:45 -07:00
es2015_linker_plugin_spec.ts refactor(compiler-cli): use semver range checking for partial versions (#39847) 2020-12-04 10:26:17 -08:00