UNPKG

@angular-devkit/build-angular

Version:
17 lines (16 loc) 758 B
/** * @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 { StatsChunk, StatsCompilation } from 'webpack'; import { NormalizedEntryPoint } from './helpers'; /** * Webpack stats may incorrectly mark extra entry points `initial` chunks, when * they are actually loaded asynchronously and thus not in the main bundle. This * function finds extra entry points in Webpack stats and corrects this value * whereever necessary. Does not modify {@param webpackStats}. */ export declare function markAsyncChunksNonInitial(webpackStats: StatsCompilation, extraEntryPoints: NormalizedEntryPoint[]): StatsChunk[];