angular/packages/compiler-cli
Paul Gschwendtner acdd5d998a refactor(compiler): fix import manager to be closure property renaming-compatible (#62517)
The `generateUniqueIdentifier` helper relies on the internal `identifiers` property of a `ts.SourceFile`.
As this is not a public-facing API, it is not included in the externs provided to Closure Compiler.
Consequently, it is susceptible to being renamed during advanced optimizations, which would lead to runtime failures.

To prevent this, the property is now accessed via a string literal (`sf['identifiers']`). This change ensures that
the property name is preserved through the compilation process. An explanatory comment has been added to clarify the
necessity of this approach for future reference.

PR Close #62517
2025-07-08 11:31:07 +00:00
..
linker refactor(compiler): track whether component has directive dependencies (#62096) 2025-06-23 14:24:09 +02:00
private build: migrate to using new jasmine_test (#62131) 2025-06-19 10:06:27 +02:00
src refactor(compiler): fix import manager to be closure property renaming-compatible (#62517) 2025-07-08 11:31:07 +00:00
test docs: improve support for decorator APIs (#60411) 2025-07-03 11:51:34 +00:00
BUILD.bazel build: migrate partial compliance tests to rules_js (#61865) 2025-06-05 12:04:51 +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(compiler-cli): export type used by migrations (#61697) 2025-05-30 09:50:58 -04:00
package.json build: update all non-major dependencies (#62419) 2025-07-02 14:20:48 +00:00
tsconfig-test.json build: prepare for compiler-cli to be using ts_project (#61181) 2025-05-09 15:59:46 +00:00
tsconfig.json build: prepare for compiler-cli to be using ts_project (#61181) 2025-05-09 15:59:46 +00:00