one
Version:
One is a new React Framework that makes Vite serve both native and web.
42 lines • 1.27 kB
TypeScript
export declare class BuildWorkerPool {
private workers;
private available;
private taskQueue;
private pendingById;
private nextId;
private readyCount;
private initCount;
private _ready;
private _resolveReady;
private _initialized;
private _resolveInitialized;
private _terminated;
constructor(size?: number);
get size(): number;
initialize(): Promise<void>;
private dispatch;
buildPage(args: {
serverEntry: string;
path: string;
relativeId: string;
params: any;
foundRoute: any;
clientManifestEntry: any;
staticDir: string;
clientDir: string;
builtMiddlewares: Record<string, string>;
serverJsPath: string;
preloads: string[];
allCSS: string[];
routePreloads: Record<string, string>;
allCSSContents?: string[];
criticalPreloads?: string[];
deferredPreloads?: string[];
useAfterLCP?: boolean;
useAfterLCPAggressive?: boolean;
}): Promise<any>;
terminate(): Promise<void>;
}
export declare function getWorkerPool(size?: number): BuildWorkerPool;
export declare function terminateWorkerPool(): Promise<void>;
//# sourceMappingURL=workerPool.d.ts.map