UNPKG

@angular/build

Version:

Official build system for Angular

47 lines (46 loc) 1.49 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 */ import type { OutputFile } from 'esbuild'; export declare const SERVER_APP_MANIFEST_FILENAME = "angular-app-manifest.mjs"; export declare const SERVER_APP_ENGINE_MANIFEST_FILENAME = "angular-app-engine-manifest.mjs"; export interface BuildOutputAsset { source: string; destination: string; } export interface InitialFileRecord { entrypoint: boolean; name?: string; type: 'script' | 'style'; external?: boolean; serverFile: boolean; depth: number; } export declare enum BuildOutputFileType { Browser = 0, Media = 1, ServerApplication = 2, ServerRoot = 3, Root = 4 } export interface BuildOutputFile extends OutputFile { type: BuildOutputFileType; readonly size: number; clone: () => BuildOutputFile; } export type PrerenderedRoutesRecord = Record<string, { headers?: Record<string, string>; }>; /** * A set of server-generated dependencies that are treated as external. * * These dependencies are marked as external because they are produced by a * separate bundling process and are not included in the primary bundle. This * ensures that these generated files are resolved from an external source rather * than being part of the main bundle. */ export declare const SERVER_GENERATED_EXTERNALS: Set<string>;