mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
d3f67f6ca8
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.
21 lines
432 B
TypeScript
21 lines
432 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 forms package.
|
|
*/
|
|
|
|
import {Version} from '@angular/core';
|
|
|
|
/**
|
|
* @publicApi
|
|
*/
|
|
export const VERSION = /* @__PURE__ */ new Version('0.0.0-PLACEHOLDER');
|