vite-plugin-react-server
Version:
Vite plugin for React Server Components (RSC)
62 lines • 2.52 kB
TypeScript
import { CssCollector } from "../css-collector.js";
export declare const DEFAULT_CONFIG: {
readonly FILE_REGEX: RegExp;
readonly CLIENT_ASSETS_DIR: "assets";
readonly RSC_DIR: "rsc";
readonly MODULE_BASE: "src";
readonly MODULE_BASE_PATH: "";
readonly MODULE_BASE_URL: "";
readonly PAGE: "src/page/page.tsx";
readonly PROPS: "src/page/props.ts";
readonly CLIENT_ENTRY: "src/client.tsx";
readonly SERVER_ENTRY: "src/server.tsx";
readonly PAGE_EXPORT_NAME: "Page";
readonly PROPS_EXPORT_NAME: "props";
readonly HTML_WORKER_PATH: "worker/html/html-worker.production.js" | "worker/html/html-worker.development.js";
readonly RSC_WORKER_PATH: "worker/rsc/rsc-worker.production.js" | "worker/rsc/rsc-worker.development.js";
readonly LOADER_PATH: "worker/loader.js";
readonly RSC_EXTENSION: ".rsc";
readonly CSS_COLLECTOR: typeof CssCollector;
readonly HTML: ({ children }: {
children: any;
}) => import("react").JSX.Element;
readonly COLLECT_CSS: true;
readonly COLLECT_ASSETS: true;
readonly INLINE_CSS: true;
readonly DEV_PORT: 5173;
readonly PREVIEW_PORT: 4173;
readonly DEV_HOST: "localhost";
readonly PREVIEW_HOST: "localhost";
readonly ENV_PREFIX: "VITE_";
readonly BUILD: {
readonly pages: () => string[];
readonly client: "client";
readonly server: "server";
readonly static: "static";
readonly api: "api";
readonly outDir: "dist";
readonly assetsDir: "assets";
readonly hash: "hash";
readonly preserveModulesRoot: true;
};
readonly CSS: {
readonly inlineThreshold: 4096;
readonly inlinePatterns: readonly [RegExp];
readonly linkPatterns: readonly [RegExp];
};
readonly MODULE_BASE_EXCEPTIONS: string[];
readonly AUTO_DISCOVER: {
readonly modulePattern: (n: string) => boolean;
readonly pagePattern: (n: string) => boolean;
readonly propsPattern: (n: string) => boolean;
readonly clientComponents: (n: string) => boolean;
readonly serverFunctions: (n: string) => boolean;
readonly cssPattern: (n: string) => boolean;
readonly cssModulePattern: (n: string) => boolean;
readonly vendorPattern: (n: string) => boolean;
readonly htmlPattern: (n: string) => boolean;
readonly jsonPattern: (n: string) => boolean;
};
readonly MODULE_ID: (id: string) => string;
};
//# sourceMappingURL=defaults.d.ts.map