1 | /**
|
---|
2 | * @license
|
---|
3 | * Copyright Google LLC All Rights Reserved.
|
---|
4 | *
|
---|
5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
6 | * found in the LICENSE file at https://angular.io/license
|
---|
7 | */
|
---|
8 | /// <amd-module name="@angular/compiler-cli/linker/src/file_linker/linker_options" />
|
---|
9 | /**
|
---|
10 | * Options to configure the linking behavior.
|
---|
11 | */
|
---|
12 | export interface LinkerOptions {
|
---|
13 | /**
|
---|
14 | * Whether to use source-mapping to compute the original source for external templates.
|
---|
15 | * The default is `true`.
|
---|
16 | */
|
---|
17 | sourceMapping: boolean;
|
---|
18 | /**
|
---|
19 | * This option tells the linker to generate information used by a downstream JIT compiler.
|
---|
20 | *
|
---|
21 | * Specifically, in JIT mode, NgModule definitions must describe the `declarations`, `imports`,
|
---|
22 | * `exports`, etc, which are otherwise not needed.
|
---|
23 | */
|
---|
24 | linkerJitMode: boolean;
|
---|
25 | /**
|
---|
26 | * How to handle a situation where a partial declaration matches none of the supported
|
---|
27 | * partial-linker versions.
|
---|
28 | *
|
---|
29 | * - `error` - the version mismatch is a fatal error.
|
---|
30 | * - `warn` - a warning is sent to the logger but the most recent partial-linker
|
---|
31 | * will attempt to process the declaration anyway.
|
---|
32 | * - `ignore` - the most recent partial-linker will, silently, attempt to process
|
---|
33 | * the declaration.
|
---|
34 | *
|
---|
35 | * The default is `error`.
|
---|
36 | */
|
---|
37 | unknownDeclarationVersionHandling: 'ignore' | 'warn' | 'error';
|
---|
38 | }
|
---|
39 | /**
|
---|
40 | * The default linker options to use if properties are not provided.
|
---|
41 | */
|
---|
42 | export declare const DEFAULT_LINKER_OPTIONS: LinkerOptions;
|
---|