@angular/compiler-cli
Version:
Angular - the compiler CLI for Node.js
35 lines (34 loc) • 1.14 kB
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
*/
/**
* @fileoverview
* This file is used as a private API channel to shared Angular FW APIs with @angular/cli.
*
* Any changes to this file should be discussed with the Angular CLI team.
*/
import ts from 'typescript';
/**
* Known values for global variables in `@angular/core` that Terser should set using
* https://github.com/terser-js/terser#conditional-compilation
*/
export declare const GLOBAL_DEFS_FOR_TERSER: {
ngDevMode: boolean;
ngI18nClosureMode: boolean;
};
export declare const GLOBAL_DEFS_FOR_TERSER_WITH_AOT: {
ngJitMode: boolean;
ngDevMode: boolean;
ngI18nClosureMode: boolean;
};
/**
* JIT transform used by the Angular CLI.
*
* NOTE: Signature is explicitly captured here to highlight the
* contract various Angular CLI versions are relying on.
*/
export declare const constructorParametersDownlevelTransform: (program: ts.Program, isCore?: boolean) => ts.TransformerFactory<ts.SourceFile>;