next
Version:
The React Framework
12 lines (11 loc) • 460 B
TypeScript
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[];
stats: webpack5.Stats | undefined;
};
export declare function runCompiler(config: webpack.Configuration, { runWebpackSpan }: {
runWebpackSpan: Span;
}): Promise<CompilerResult>;