mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
ce958e070e
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
Angular
The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.
Usage information and reference details can be found in Angular documentation.
License: MIT