mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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 |
||
|---|---|---|
| .. | ||
| linker | ||
| private | ||
| src | ||
| test | ||
| BUILD.bazel | ||
| esbuild.config.js | ||
| index.ts | ||
| package.json | ||
| tsconfig-test.json | ||
| tsconfig.json | ||