Vue Plugin (ui)
Types & Interfaces
VuePluginFn
import { VuePluginFn } from '@hexajs-dev/ui';
type VuePluginFn = (...args: unknown[]) => Plugin | Plugin[];
Functions
loadVuePlugin
Resolve @vitejs/plugin-vue 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.
Throws a precise, actionable error message when the plugin (or vue) is
missing, naming the install command the user should run.
import { loadVuePlugin } from '@hexajs-dev/ui';
function loadVuePlugin(cwd: string): VuePluginFn