UNPKG

497 BTypeScriptView Raw
1import { Plugin } from 'rollup';
2export declare type DependencyStats = {
3 size: number;
4 gzip: number;
5 brotli?: number;
6 delta?: number;
7};
8declare type DependencyStatsMap = {
9 [filePath: string]: DependencyStats;
10};
11declare type DependencyType = 'direct' | 'common';
12export declare type DependencyStatsOutput = Record<DependencyType, DependencyStatsMap>;
13export declare function rollupPluginDependencyStats(cb: (dependencyInfo: DependencyStatsOutput) => void): Plugin;
14export {};