angular/packages/compiler-cli
Kristiyan Kostadinov 33fe252c58 fix(compiler-cli): do not report unused declarations coming from an imported array (#57940)
Some apps follow a pattern where they have an array of common declarations which is imported in most standalone components, but only some of the declarations are used. Such cases will currently raise the unused imports diagnostic but can be hard to fix, because it would require either removing declarations from the common array which can break other components, or copying only the necessary declarations from the array. Since neither of these solutions is great, this commit tweaks the logic for the diagnostic so that unused imports coming from _exported_ arrays are not reported (either from the same file or another one).

PR Close #57940
2024-09-30 13:27:29 -07:00
..
integrationtest refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
linker refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02: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): do not report unused declarations coming from an imported array (#57940) 2024-09-30 13:27:29 -07:00
test fix(compiler-cli): do not report unused declarations coming from an imported array (#57940) 2024-09-30 13:27:29 -07:00
BUILD.bazel refactor(compiler-cli): move JIT transforms into ngtsc (#56892) 2024-07-10 17:29:20 +02: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: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
package.json feat(core): drop support for TypeScript 5.4 (#57577) 2024-08-29 10:19:20 -07: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