11 lines
389 B
TypeScript
11 lines
389 B
TypeScript
import { webpack } from 'next/dist/compiled/webpack/webpack';
|
|
import { Span } from '../trace';
|
|
export declare type CompilerResult = {
|
|
errors: webpack.StatsError[];
|
|
warnings: webpack.StatsError[];
|
|
stats: webpack.Stats | undefined;
|
|
};
|
|
export declare function runCompiler(config: webpack.Configuration, { runWebpackSpan }: {
|
|
runWebpackSpan: Span;
|
|
}): Promise<CompilerResult>;
|