mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
dee6ef89c7
Previously, HOST_TAG_NAME had its __NG_ELEMENT_ID__ set at the top level. This prevented tree-shaking, since the bundler had to keep the assignment as a potential side effect even when the token was never used. This change moves the token creation and __NG_ELEMENT_ID__ assignment into a @__PURE__ IIFE. If HOST_TAG_NAME is not injected anywhere, the IIFE result is unused and can be dropped entirely by the optimizer. If it is used, the token still behaves the same at runtime. PR Close #63861
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