angular/packages/platform-browser/src
arturovt 4c66fe4796 refactor(core): mark VERSION as @__PURE__ for better tree-shaking
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 d3f67f6ca8)
2025-11-10 12:04:08 -08:00
..
browser perf(platform-server): speed up resolution of base (#61392) 2025-05-16 09:03:38 +00:00
dom refactor(platform-browser): remove unused Platform ID dependency from DomRendererFactory2 2025-11-06 20:00:49 +00:00
security refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
browser.ts feat(core): introduce BootstrapContext for improved server bootstrapping (#63636) 2025-09-09 10:45:02 -07:00
errors.ts refactor(platform-browser): use RuntimeError for hydration feature conflicts (#62414) 2025-07-03 08:08:07 +00:00
hydration.ts docs: add references to SSR guide for caching options (#64347) 2025-10-21 15:12:15 +00:00
platform-browser.externs.js refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
platform-browser.ts fix(platform-browser): DomEventsPlugin should always be the last plugin to be called for supports(). (#50394) 2025-10-15 21:12:46 +00:00
private_export.ts fix(platform-browser): ensure platformBrowserTesting includes platformBrowser providers (#60480) 2025-03-20 12:33:12 -07:00
version.ts refactor(core): mark VERSION as @__PURE__ for better tree-shaking 2025-11-10 12:04:08 -08:00