angular/packages/compiler-cli/test
Paul Gschwendtner 98ed5b609e feat(compiler-cli): run JIT transform on classes with jit: true opt-out (#56892)
Currently when compiling code with the Angular compiler, all classes
with Angular decorators are compiled with AOT. This includes type
checking, scope collection etc.

This may not be desirable for all components, e.g. dynamic components,
or test components w/ `TestBed.configureTestingModule` (if compiled with ngtsc).

Those components can opt out of AOT on a per component-basis via `jit:
true`. This is helpful as it allows incremental migrations/refactorings
to AOT. Whether we want to keep this capability long-term is something
to be discussed separately.

For now though, we should fix that components compiled with `jit: true`
actually work as expected. Currently this **not the case** as soon as
the new initializer APIs are used— as those do no longer declare class
metadata with decorators.

This commit runs the JIT transform on JIT-opted classes.

Related: https://docs.google.com/document/d/1ox4atCJldWWDXlaYgwM-hU8BNsTpKNW7gx8OfZ0HtRY/edit?resourcekey=0-G1haTNYtD-dN0vNRkQ8_OQ&tab=t.0

PR Close #56892
2024-07-10 17:29:19 +02:00
..
compliance fix(compiler): give precedence to local let declarations over parent ones (#56752) 2024-07-01 14:03:57 +00:00
ngtsc feat(compiler-cli): run JIT transform on classes with jit: true opt-out (#56892) 2024-07-10 17:29:19 +02:00
BUILD.bazel fix(compiler-cli): identify aliased initializer functions (#54609) 2024-02-26 18:27:15 -08:00
downlevel_decorators_transform_spec.ts refactor: migrate compiler-cli to prettier formatting (#55485) 2024-04-29 10:25:43 -07:00
extract_i18n_spec.ts refactor(compiler): add handler attribute to XMB output (#54865) 2024-04-29 11:56:31 -07:00
initializer_api_transforms_spec.ts refactor(compiler-cli): support running JIT transforms as part of tsickle emit (#56520) 2024-06-27 15:55:18 +00:00
mocks.ts refactor: migrate compiler-cli to prettier formatting (#55485) 2024-04-29 10:25:43 -07:00
perform_compile_spec.ts refactor: migrate compiler-cli to prettier formatting (#55485) 2024-04-29 10:25:43 -07:00
perform_watch_spec.ts refactor: migrate compiler-cli to prettier formatting (#55485) 2024-04-29 10:25:43 -07:00
signal_queries_metadata_transform_spec.ts refactor: migrate compiler-cli to prettier formatting (#55485) 2024-04-29 10:25:43 -07:00
test_support.ts refactor(core): clean up clang comments and workarounds (#55750) 2024-05-13 11:10:36 -07:00
typescript_support_spec.ts refactor: migrate compiler-cli to prettier formatting (#55485) 2024-04-29 10:25:43 -07:00
version_helpers_spec.ts refactor: migrate compiler-cli to prettier formatting (#55485) 2024-04-29 10:25:43 -07:00