securityos/node_modules/next/dist/build/compiler.d.ts

12 lines
464 B
TypeScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
import { webpack } from 'next/dist/compiled/webpack/webpack';
import type { Span } from '../trace';
export type CompilerResult = {
errors: webpack.StatsError[];
warnings: webpack.StatsError[];
stats: webpack.Stats | undefined;
};
export declare function runCompiler(config: webpack.Configuration, { runWebpackSpan, inputFileSystem, }: {
runWebpackSpan: Span;
inputFileSystem?: any;
}): Promise<[result: CompilerResult, inputFileSystem?: any]>;