You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
538 B
15 lines
538 B
|
2 months ago
|
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']
|
||
|
|
]>;
|