WebpackCompilation.d.ts 661 B

1234567891011121314151617181920212223
  1. import { WebpackChunk } from './WebpackChunk';
  2. import { Source } from 'webpack-sources';
  3. export interface WebpackCompilation {
  4. chunks: IterableIterator<WebpackChunk>;
  5. assets: {
  6. [key: string]: Source;
  7. };
  8. errors: any[];
  9. warnings: any[];
  10. getPath(filename: string, data: {
  11. hash?: any;
  12. chunk?: any;
  13. filename?: string;
  14. basename?: string;
  15. query?: any;
  16. }): string;
  17. hooks: {
  18. optimizeChunkAssets: {
  19. tap: (pluginName: string, handler: (chunks: IterableIterator<WebpackChunk>) => void) => void;
  20. };
  21. };
  22. plugin?: (phase: string, callback: Function) => void;
  23. }