This repository has been archived on 2025-07-07. You can view files and clone it, but cannot push or open issues or pull requests.
Files
2025-01-11 09:54:09 +03:00

15 lines
538 B
TypeScript

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