React Plugin (ui)
Types & Interfaces
ReactPluginFn
import { ReactPluginFn } from '@hexajs-dev/ui';
type ReactPluginFn = (...args: unknown[]) => Plugin | Plugin[];
Functions
loadReactPlugin
Resolve @vitejs/plugin-react from the user's project at build time.
The Hexa packages never own framework plugins — they must live in the
user project's node_modules.
import { loadReactPlugin } from '@hexajs-dev/ui';
function loadReactPlugin(cwd: string): ReactPluginFn