/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import type { StatsCompilation } from "webpack"; export interface ChunkSizeInfo { chunkId: number | string; size: number; } /** * Gets the complete picture of everything that is required for a given chunk to execute */ export interface AggregatedChunkAnalysis { name: string; dependencies: ChunkSizeInfo[]; size: number; } /** * This utility is useful for analyzing the performance impact of a given named chunk. It returns the size of the chunk, as well * as an array of dependencies that must be downloaded prior to executing this chunk. * @param stats - The webpack stats file * @param chunkName - The name of the chunk we wish to analyze. */ export declare function getChunkAndDependencySizes(stats: StatsCompilation, chunkName: string): AggregatedChunkAnalysis; //# sourceMappingURL=getChunkAndDependenciesSizes.d.ts.map