webpack-chunk-report-plugin
Version:
Webpack Chunk Report Plugin
20 lines (19 loc) • 554 B
TypeScript
import type { Module, Chunk, Reason } from "../types";
export type GraphNode = {
id: string;
type: "module" | "chunk";
data: Module | Chunk;
dependencies: string[];
isRequiredOnInitialLoad?: boolean;
};
export type GraphLink = {
source: string;
target: string;
reason?: Reason;
};
export type GraphData = {
nodes: GraphNode[];
links: GraphLink[];
};
export type ChunkIdVsChunkMap = Record<string, Chunk>;
export declare function generateGraphFromChunkIdVsChunkMap(chunkIdVsChunkMap: ChunkIdVsChunkMap): GraphData;