rwsdk
Version:
Build fast, server-driven webapps on Cloudflare with SSR, RSC, and realtime
24 lines (23 loc) • 879 B
text/typescript
import { InlineConfig } from "vite";
import { unstable_readConfig } from "wrangler";
import { ConfigurableEsbuildOptions } from "./runDirectivesScan.mjs";
export type RedwoodPluginOptions = {
silent?: boolean;
rootDir?: string;
includeCloudflarePlugin?: boolean;
includeReactPlugin?: boolean;
configPath?: string;
forceClientPaths?: string[];
forceServerPaths?: string[];
entry?: {
worker?: string;
};
esbuildOptions?: ConfigurableEsbuildOptions;
};
export declare const determineWorkerEntryPathname: ({ projectRootDir, workerConfigPath, options, readConfig, }: {
projectRootDir: string;
workerConfigPath: string;
options: RedwoodPluginOptions;
readConfig?: typeof unstable_readConfig;
}) => Promise<string>;
export declare const redwoodPlugin: (options?: RedwoodPluginOptions) => Promise<InlineConfig["plugins"]>;