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.
20 lines
451 B
TypeScript
20 lines
451 B
TypeScript
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.dev/license
|
|
*/
|
|
|
|
/**
|
|
* @module
|
|
* @description
|
|
* Entry point for all public APIs of the platform-browser-dynamic package.
|
|
*/
|
|
|
|
import {Version} from '@angular/core';
|
|
|
|
/**
|
|
* @publicApi
|
|
*/
|
|
export const VERSION = /* @__PURE__ */ new Version('0.0.0-PLACEHOLDER');
|