vite-plugin-react-server
Version:
Vite plugin for React Server Components (RSC)
16 lines • 548 B
TypeScript
import { Worker, type ResourceLimits } from "node:worker_threads";
type CreateWorkerOptions = {
projectRoot?: string;
condition?: "react-server" | "react-client";
nodePath?: string;
nodeOptions?: string;
mode?: "production" | "development";
reverseCondition?: boolean;
maxListeners?: number;
workerPath: string;
resourceLimits?: ResourceLimits;
typescript?: boolean;
};
export declare function createWorker(options: CreateWorkerOptions): Promise<Worker>;
export {};
//# sourceMappingURL=createWorker.d.ts.map