UNPKG

vite-plugin-react-server

Version:
19 lines 835 B
import type { Strategy } from "./types.js"; export interface ResolveStrategyOptions { userStrategy?: Partial<Strategy>; mainThreadCondition: "react-client" | "react-server"; importContext: "react-client" | "react-server"; functionName: "vitePluginReactClient" | "vitePluginReactServer"; } /** * Resolves and validates the build strategy with sensible defaults * * Rules: * - If bundleTarget is "server" but mainThreadCondition is "react-client", fail * - If bundleTarget is "client" but mainThreadCondition is "react-server", fail * - If bundleTarget is not set, set it based on functionName * - If mode is not set, default to "auto" * - Validate that the strategy is supported */ export declare function resolveStrategy(options: ResolveStrategyOptions): Strategy; //# sourceMappingURL=resolveStrategy.d.ts.map