UNPKG

next

Version:

The React Framework

11 lines (10 loc) 421 B
import { webpack } from 'next/dist/compiled/webpack/webpack'; import type { webpack5 } from 'next/dist/compiled/webpack/webpack'; import { Span } from '../trace'; export declare type CompilerResult = { errors: webpack5.StatsError[]; warnings: webpack5.StatsError[]; }; export declare function runCompiler(config: webpack.Configuration, { runWebpackSpan }: { runWebpackSpan: Span; }): Promise<CompilerResult>;