angular/packages/common
arturovt 8ab084754b 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:09 -08:00
..
http refactor(http): migrate XSRF classes to use inject() function 2025-11-10 09:49:14 -08:00
locales build: format md files 2025-11-06 10:07:13 -08:00
src refactor(core): mark VERSION as @__PURE__ for better tree-shaking 2025-11-10 12:04:09 -08:00
test feat(common): Blocks IPv6 localhost from preconnect checks 2025-10-24 18:46:48 +02:00
testing build: format md files 2025-11-06 10:07:13 -08:00
upgrade build: format md files 2025-11-06 10:07:13 -08:00
BUILD.bazel build: rename defaults2.bzl to defaults.bzl (#63383) 2025-08-25 15:45:01 -07:00
index.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
package.json build: update common's locales to use rules_js (#61629) 2025-05-26 10:18:14 +00:00
PACKAGE.md build: format md files 2025-11-06 10:07:13 -08:00
public_api.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00