angular/packages/core/test/render3
Kristiyan Kostadinov 5bd188a394 feat(compiler-cli): add partial compilation support for deferred blocks (#54908)
Builds on top of the previous changes to add support for deferred blocks during partial compilation. To do this, the following changes had to be made:
* The metadata passed into `ɵɵngDeclareComponent` has an additional field called `deferBlockDependencies` which has an array of the dependency loading functions for each defer block in the template. During linking, the dependency functions are loaded by matching their template index to the index in the `deferBlockDependencies` array.
* There's a new `ɵɵngDeclareClassMetadataAsync` function that is created for components that have deferred dependencies. It gets transpiled to `setClassMetadataAsync` and works in the same way by capturing a dependency loading function and setting the metadata after the dependencies are resolved. It also has some extra fields for capturing the version which are standard in linker-generated code.
* Deferred import statements are now stripped in partial compilation mode, similar to full compilation.

PR Close #54908
2024-03-21 22:15:32 -07:00
..
i18n refactor(core): add i18n AST to prepare for hydration (#54724) 2024-03-07 11:00:36 -08:00
instructions refactor(core): break circular dependencies in preparation for queries as signals (#54103) 2024-02-06 15:04:36 +00:00
interfaces ci: add lint error for files with missing trailing new-line (#42478) 2021-06-04 13:31:03 -07:00
ivy refactor(core): remove unnecessary reflect-metadata import. (#49673) 2023-04-03 19:17:02 -07:00
jit refactor(compiler): support JIT for signal-based queries (#54019) 2024-01-24 16:13:31 +01:00
styling_next refactor(core): break circular dependencies in preparation for queries as signals (#54103) 2024-02-06 15:04:36 +00:00
util refactor(core): add a new stringifier for runtime errors which includes debug info such as the file path and line number (#51919) 2023-10-09 15:57:03 -07:00
BUILD.bazel fix(core): untrack various core operations (#54614) 2024-02-29 11:38:54 +01:00
change_detection_spec.ts refactor(core): drop unused fields from the RootContext (#46806) 2022-08-05 09:58:06 -07:00
component_ref_spec.ts fix(core): expose input transform function on ComponentFactory and ComponentMirror (#50713) 2023-06-22 09:47:15 -07:00
deps_tracker_spec.ts feat(core): show runtime error for orphan component rendering (#52061) 2023-10-10 15:30:26 -07:00
di_spec.ts refactor(core): Add scheduler abstraction and notify when necessary (#53499) 2023-12-20 07:53:31 -08:00
es2015-tsconfig.json fix(core): destroy hooks not set up for useClass provider using forwardRef (#44281) 2021-11-30 11:56:05 -05:00
global_utils_spec.ts refactor(core): type-safe global ng (#53439) 2024-01-09 12:17:48 -08:00
i18n_debug_spec.ts build: bundle spec files for saucelabs legacy job (#44281) 2021-11-30 11:56:04 -05:00
imported_renderer2.ts refactor(core): Remove dead unit test code (#51223) 2023-08-01 12:10:57 -07:00
instructions_spec.ts refactor(core): break circular dependencies in preparation for queries as signals (#54103) 2024-02-06 15:04:36 +00:00
integration_spec.ts feat(core): support TypeScript 4.8 (#47038) 2022-08-16 16:02:47 +00:00
is_shape_of.ts refactor(core): add i18n AST to prepare for hydration (#54724) 2024-03-07 11:00:36 -08:00
is_shape_of_spec.ts ci: add lint error for files with missing trailing new-line (#42478) 2021-06-04 13:31:03 -07:00
jit_environment_spec.ts feat(compiler-cli): add partial compilation support for deferred blocks (#54908) 2024-03-21 22:15:32 -07:00
list_reconciliation_spec.ts perf(core): optimize memory allocation when reconcilling lists (#52245) 2023-12-08 15:00:13 -08:00
load_domino.ts fix(platform-server): Do not delete global Event (#53659) 2024-01-04 12:51:22 -08:00
matchers.ts refactor(core): Better use of Object.keys() (#51153) 2023-07-25 09:17:46 -07:00
matchers_spec.ts refactor(core): serialize info about templates used to create embedded views (#49382) 2023-03-14 14:22:08 -07:00
metadata_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
multi_map_spec.ts perf(core): optimize memory allocation when reconcilling lists (#52245) 2023-12-08 15:00:13 -08:00
node_selector_matcher_spec.ts refactor(core): break circular dependencies in preparation for queries as signals (#54103) 2024-02-06 15:04:36 +00:00
providers_helper.ts test(core): convert providers test utility to TestBed (#46527) 2022-06-27 15:15:00 -07:00
providers_spec.ts test(core): use TestBed & JIT instead of handwritten defs in providers_spec (#46527) 2022-06-27 15:15:00 -07:00
query_spec.ts test(core): refactor tests to use TestBed instead of hand-written instructions (#46561) 2022-06-28 21:28:21 -07:00
reactive_safety_spec.ts fix(core): untrack various core operations (#54614) 2024-02-29 11:38:54 +01:00
reactivity_spec.ts refactor(core): Pending effects should make the application unstable (#53835) 2024-03-04 10:35:38 +01:00
testing_spec.ts test: update tests to account for karma-jasmine v5.0.0 2022-07-18 19:19:00 +02:00
utils.ts build: update to jasmine 4.0 (#45558) 2022-04-11 16:25:28 +00:00
view_fixture.ts refactor(core): Add scheduler abstraction and notify when necessary (#53499) 2023-12-20 07:53:31 -08:00
view_utils_spec.ts fix(core): Store ICU state in LView rather than in TView (#39233) 2020-10-21 18:33:00 -07:00