lighthouse
Version:
Automated auditing, performance metrics, and best practices for the web.
35 lines • 1.31 kB
TypeScript
export { ModuleDuplicationComputed as ModuleDuplication };
declare const ModuleDuplicationComputed: typeof ModuleDuplication & {
request: (dependencies: Pick<import("../index.js").Artifacts, "Scripts" | "SourceMaps">, context: LH.Artifacts.ComputedContext) => Promise<Map<string, {
scriptId: string;
scriptUrl: string;
resourceSize: number;
}[]>>;
};
declare class ModuleDuplication {
/**
* @param {string} source
*/
static normalizeSource(source: string): string;
/**
* @param {string} source
*/
static _shouldIgnoreSource(source: string): boolean;
/**
* @param {Map<string, Array<{scriptId: string, resourceSize: number}>>} moduleNameToSourceData
*/
static _normalizeAggregatedData(moduleNameToSourceData: Map<string, Array<{
scriptId: string;
resourceSize: number;
}>>): void;
/**
* @param {Pick<LH.Artifacts, 'Scripts'|'SourceMaps'>} artifacts
* @param {LH.Artifacts.ComputedContext} context
*/
static compute_(artifacts: Pick<LH.Artifacts, "Scripts" | "SourceMaps">, context: LH.Artifacts.ComputedContext): Promise<Map<string, {
scriptId: string;
scriptUrl: string;
resourceSize: number;
}[]>>;
}
//# sourceMappingURL=module-duplication.d.ts.map