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

19 lines
865 B
TypeScript

import type { COMPILER_INDEXES } from '../../shared/lib/constants';
import { type TelemetryPluginState } from '../webpack/plugins/telemetry-plugin';
import { NextBuildContext } from '../build-context';
import { type TraceEvent, type TraceState } from '../../trace';
import type { BuildTraceContext } from '../webpack/plugins/next-trace-entrypoints-plugin';
export declare function webpackBuildImpl(compilerName: keyof typeof COMPILER_INDEXES | null): Promise<{
duration: number;
pluginState: any;
buildTraceContext?: BuildTraceContext;
telemetryState?: TelemetryPluginState;
}>;
export declare function workerMain(workerData: {
compilerName: keyof typeof COMPILER_INDEXES;
buildContext: typeof NextBuildContext;
traceState: TraceState;
}): Promise<Awaited<ReturnType<typeof webpackBuildImpl>> & {
debugTraceEvents: TraceEvent[];
}>;