mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Annotate the `new Version(...)` call with `/* @__PURE__ */` to signal to optimizers that the constructor is side-effect free.
Without this hint, bundlers such as Terser or ESBuild may conservatively retain the `VERSION` instantiation even when unused. With the annotation, the constant can be tree-shaken away in production builds if not referenced, reducing bundle size.
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| browser | ||
| dom | ||
| security | ||
| browser.ts | ||
| errors.ts | ||
| hydration.ts | ||
| platform-browser.externs.js | ||
| platform-browser.ts | ||
| private_export.ts | ||
| version.ts | ||