rollup-plugin-webpack-stats
Version:
[](https://www.npmjs.com/package/rollup-plugin-webpack-stats) [](https://www.npmjs.com/package/rollup-plugin-webpack-stats)
17 lines (16 loc) • 773 B
TypeScript
import type { ChunkStats } from 'rollup-plugin-stats/extract';
/**
* Get content byte size
*/
export declare function getByteSize(content?: string | Uint8Array<ArrayBufferLike>): number;
/**
* Generate a 7 chars hash from a filepath
*/
export declare function getHash(filepath: string): string;
export declare function getChunkId(chunk: ChunkStats): string;
type ExcludeFilepathParam = string | RegExp | ((filepath: string) => boolean);
export type ExcludeFilepathOption = ExcludeFilepathParam | Array<ExcludeFilepathParam>;
export declare function round(value: number, precision?: number): number;
export declare function formatFileSize(value?: number | null): string;
export declare function resolveFilepath(fileName?: string, outputDir?: string): string;
export {};