angular/packages/compiler-cli
Kristiyan Kostadinov 5cd26a9420 fix(compiler-cli): handle deferred blocks with shared dependencies correctly (#59926)
When the compiler analyzes the defer blocks in a component, it generates two sets of dependencies: ones specific for each block and others from all the deferred blocks within the component. The logic that combines all the defer block dependencies wasn't de-duplicating them which resulted in us producing `setClassMetadataAsync` calls where the callback can have multiple parameters with the same name. This was a problem both in full and partial compilation, but the latter was more visible, because Babel throws an error in such cases.

These changes add some logic to de-duplicate the dependencies so that we produce valid code.

Fixes #59922.

PR Close #59926
2025-02-12 09:15:53 -08:00
..
integrationtest Revert "refactor(core): remove unused injection props (#59209)" (#59386) 2025-01-06 21:35:58 +00:00
linker refactor(compiler-cli): handle template literals in ngtsc (#59230) 2025-01-21 12:04:53 -08:00
ngcc refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
private refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
src fix(compiler-cli): handle deferred blocks with shared dependencies correctly (#59926) 2025-02-12 09:15:53 -08:00
test fix(compiler-cli): handle deferred blocks with shared dependencies correctly (#59926) 2025-02-12 09:15:53 -08:00
BUILD.bazel refactor(platform-server): Add an ssr benchmark setup. (#57647) 2024-10-04 10:45:22 -07:00
esbuild.config.js refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
index.ts refactor(compiler-cli): expose diagnostic error code (#59353) 2025-01-06 16:21:26 +00:00
package.json feat(core): support TypeScript 5.8 (#59830) 2025-02-03 14:00:41 -08:00
tsconfig-build.json refactor(compiler-cli): dismantle View Engine implementation of ngc (#44269) 2021-12-01 10:36:30 -08:00
tsconfig.json build: update tsconfigs to use ES2020 as target and module (#43431) 2021-10-01 18:28:42 +00:00