perf-audit-cli
Version:
CLI tool for continuous performance monitoring and analysis
23 lines • 736 B
TypeScript
import type { AnalyzeOptions } from '../types/bundle-analyzer.ts';
import type { BundleInfo } from '../types/config.ts';
export declare class BundleAnalyzer {
private options;
constructor(options: AnalyzeOptions);
analyzeBundles(): Promise<BundleInfo[]>;
private getFiles;
private isBundleFile;
private shouldIgnore;
private analyzeSingleBundle;
static calculateTotalSize(bundles: BundleInfo[]): {
size: number;
gzipSize?: number;
};
static applyBudgets(bundles: BundleInfo[], budgets: {
[key: string]: {
max: string;
warning: string;
};
}): BundleInfo[];
private static getBudgetKey;
}
//# sourceMappingURL=bundle-analyzer.d.ts.map