rollup-plugin-visualizer
Version:
Visualize and analyze bundle sizes and module dependencies in Rollup, Rolldown, and Vite.
25 lines (24 loc) • 1.22 kB
TypeScript
export declare class ShareError extends Error {
readonly code: "invalid-report" | "unsupported-version" | "resource-limit" | "unsupported-browser";
constructor(code: "invalid-report" | "unsupported-version" | "resource-limit" | "unsupported-browser", message: string);
}
export interface ShareLimits {
maxFileBytes: number;
maxBinaryBytes: number;
maxCompressedBytes: number;
maxTextBytes: number;
maxRecords: number;
maxEntries: number;
maxTreeDepth: number;
maxJsonDepth: number;
maxExtensions: number;
}
export declare const DEFAULT_SHARE_LIMITS: Readonly<ShareLimits>;
export declare const resolveLimits: (overrides?: Partial<ShareLimits>) => ShareLimits;
export declare const invalid: (message: string) => never;
export declare const budget: (value: number, maximum: number, name: string) => void;
export declare const uint: (value: unknown) => number;
export declare const own: (value: object, key: PropertyKey) => boolean;
export declare const setOwn: <T>(target: Record<string, T>, key: string, value: T) => void;
export declare const boolState: (value: object, key: string) => number;
export declare const putBool: (value: object, key: string, state: number) => void;