blob: 180d6dfaddd5bdedbb5f618c64dfb974881a92b1 [file] [log] [blame]
import { WebpackChunk } from './WebpackChunk';
import { Source } from 'webpack-sources';
export interface WebpackCompilation {
chunks: IterableIterator<WebpackChunk>;
assets: {
[key: string]: Source;
};
errors: any[];
warnings: any[];
getPath(filename: string, data: {
hash?: any;
chunk?: any;
filename?: string;
basename?: string;
query?: any;
}): string;
hooks: {
optimizeChunkAssets: {
tap: (pluginName: string, handler: (chunks: IterableIterator<WebpackChunk>) => void) => void;
};
};
plugin?: (phase: string, callback: Function) => void;
}