UNPKG

@angular/compiler-cli

Version:
42 lines (41 loc) 1.46 kB
/** * @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 */ /** * Options to configure the linking behavior. */ export interface LinkerOptions { /** * Whether to use source-mapping to compute the original source for external templates. * The default is `true`. */ sourceMapping: boolean; /** * This option tells the linker to generate information used by a downstream JIT compiler. * * Specifically, in JIT mode, NgModule definitions must describe the `declarations`, `imports`, * `exports`, etc, which are otherwise not needed. */ linkerJitMode: boolean; /** * How to handle a situation where a partial declaration matches none of the supported * partial-linker versions. * * - `error` - the version mismatch is a fatal error. * - `warn` - a warning is sent to the logger but the most recent partial-linker * will attempt to process the declaration anyway. * - `ignore` - the most recent partial-linker will, silently, attempt to process * the declaration. * * The default is `error`. */ unknownDeclarationVersionHandling: 'ignore' | 'warn' | 'error'; } /** * The default linker options to use if properties are not provided. */ export declare const DEFAULT_LINKER_OPTIONS: LinkerOptions;