compiler.d.ts 389 B

12345678910
  1. import { webpack } from 'next/dist/compiled/webpack/webpack';
  2. import { Span } from '../trace';
  3. export declare type CompilerResult = {
  4. errors: webpack.StatsError[];
  5. warnings: webpack.StatsError[];
  6. stats: webpack.Stats | undefined;
  7. };
  8. export declare function runCompiler(config: webpack.Configuration, { runWebpackSpan }: {
  9. runWebpackSpan: Span;
  10. }): Promise<CompilerResult>;