UNPKG

1.03 kBTypeScriptView Raw
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 */
8import { Path } from '@angular-devkit/core';
9import { AssetPatternClass, Schema as BrowserBuilderSchema, SourceMapClass } from '../browser/schema';
10import { BuildOptions } from './build-options';
11import { NormalizedFileReplacement } from './normalize-file-replacements';
12import { NormalizedOptimizationOptions } from './normalize-optimization';
13/**
14 * A normalized browser builder schema.
15 */
16export declare type NormalizedBrowserBuilderSchema = BrowserBuilderSchema & BuildOptions & {
17 sourceMap: SourceMapClass;
18 assets: AssetPatternClass[];
19 fileReplacements: NormalizedFileReplacement[];
20 optimization: NormalizedOptimizationOptions;
21};
22export declare function normalizeBrowserSchema(root: Path, projectRoot: Path, sourceRoot: Path | undefined, options: BrowserBuilderSchema): NormalizedBrowserBuilderSchema;