Packages
React inside Phoenix LiveView — async code splitting, client-side props diffing, and zero-config component discovery.
Retired package: Release invalid - Not production-ready, LiveView 1.0.x compatibility issue
Current section
Files
Jump to
Current section
Files
assets/dist/vite-plugin.d.ts
import type { Plugin } from "vite";
export interface ReactPhxPluginOptions {
/** Directory containing React components. Defaults to "./react-components". */
componentDir?: string;
/** Enable SSR support. Defaults to true. */
ssr?: boolean;
/** Enable automatic vendor chunk splitting. Defaults to true. */
vendorChunks?: boolean;
/** Enable HMR for .heex/.ex file changes. Defaults to true. */
hmr?: boolean;
/** SSR endpoint path. Defaults to "/ssr_render". */
ssrPath?: string;
/** SSR entrypoint module. Defaults to "./js/server.js". */
ssrEntry?: string;
/** @deprecated Use `ssrPath` instead. */
path?: string;
/** @deprecated Use `ssrEntry` instead. */
entrypoint?: string;
}
export default function reactPhxPlugin(opts?: ReactPhxPluginOptions): Plugin;