Files
lcbp3.np-dms.work/frontend/node_modules/next/dist/build/compiler.d.ts
2025-09-21 20:29:15 +07:00

15 lines
543 B
TypeScript
Executable File

import type { 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?: webpack.Compiler['inputFileSystem'];
}): Promise<[
result: CompilerResult,
inputFileSystem?: webpack.Compiler['inputFileSystem']
]>;