import { WebpackChunk } from './WebpackChunk'; import { Source } from 'webpack-sources'; export interface WebpackCompilation { chunks: IterableIterator; 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) => void) => void; }; }; plugin?: (phase: string, callback: Function) => void; }