angular/packages/compiler-cli/test/compliance/test_cases
Alex Rickabaugh 4e0784c2f0 refactor(compiler-cli): optimize InjectorDef imports generation (#45701)
Before standalone, everything that could appear in an NgModule's `imports`
was relevant to DI, and needed to be emitted in the `imports` of the
generated `InjectorDef` definition. With the introduction of standalone
types, NgModule `imports` can now contain components, directives, and pipes
which are standalone. Only standalone components need to be included in
the `imports` of the generated injector definition - directives and pipes
have no effect on DI. Having them present doesn't cause any errors in the
runtime (they're filtered out by the injector itself) but it does prevent
tree-shaking.

With this commit, the generation of `InjectorDef` now filters the `imports`
to exclude directives and pipes as much as possible. It's not _always_
possible because an expression in `imports` may pull in both a directive and
a `ModuleWithProviders` reference, and we have no way of referencing just
the MWP part of that expression. Therefore this is an optimization, not a
rule of `InjectorDef` compilation.

PR Close #45701
2022-04-26 10:07:23 -07:00
..
r3_compiler_compliance refactor(compiler-cli): optimize InjectorDef imports generation (#45701) 2022-04-26 10:07:23 -07:00
r3_view_compiler refactor(compiler-cli): emit isStandalone flag in partial declarations (#45672) 2022-04-20 05:45:57 -07:00
r3_view_compiler_bindings refactor(compiler-cli): emit isStandalone flag in partial declarations (#45672) 2022-04-20 05:45:57 -07:00
r3_view_compiler_di/di refactor(compiler-cli): emit isStandalone flag in partial declarations (#45672) 2022-04-20 05:45:57 -07:00
r3_view_compiler_directives/matching refactor(compiler-cli): emit isStandalone flag in partial declarations (#45672) 2022-04-20 05:45:57 -07:00
r3_view_compiler_i18n refactor(compiler-cli): emit isStandalone flag in partial declarations (#45672) 2022-04-20 05:45:57 -07:00
r3_view_compiler_input_outputs refactor(compiler-cli): emit isStandalone flag in partial declarations (#45672) 2022-04-20 05:45:57 -07:00
r3_view_compiler_listener refactor(compiler-cli): emit isStandalone flag in partial declarations (#45672) 2022-04-20 05:45:57 -07:00
r3_view_compiler_providers refactor(compiler-cli): emit isStandalone flag in partial declarations (#45672) 2022-04-20 05:45:57 -07:00
r3_view_compiler_styling refactor(compiler-cli): emit isStandalone flag in partial declarations (#45672) 2022-04-20 05:45:57 -07:00
r3_view_compiler_template refactor(compiler-cli): emit isStandalone flag in partial declarations (#45672) 2022-04-20 05:45:57 -07:00
source_mapping refactor(compiler-cli): emit isStandalone flag in partial declarations (#45672) 2022-04-20 05:45:57 -07:00
BUILD.bazel test: refactor compiler-cli compliance test to work on windows (#45431) 2022-03-25 12:18:34 -07:00
list_golden_update_rules.ts refactor(compiler-cli): use semver range checking for partial versions (#39847) 2020-12-04 10:26:17 -08:00
test_case_schema.json test(compiler-cli): improve compliance test compile mode filtering (#39939) 2020-12-07 16:21:04 -08:00