Vendor (ui)
Types & Interfaces
HexaBootstrapPluginOptions
import { HexaBootstrapPluginOptions } from '@hexajs-dev/ui';
interface HexaBootstrapPluginOptions {
watch?: boolean;
hmrAddress?: string;
hmrSessionToken?: string;
surface?: 'popup' | 'devtools';
}
Functions
hexaBootstrapPlugin
Vite plugin that resolves the @hexa/bootstrap alias to the pre-built
ui.bootstrap.js file in the output directory, and auto-injects the
import into entry files so users never need to reference it manually.
The bootstrap file is a side-effect-only module generated by the CLI
(hexa build). It creates the DI container, wires all UI/General
services and tokens, and calls setContainer() from @hexajs-dev/common.
After that, import { inject } from '@hexajs-dev/common' works everywhere.
import { hexaBootstrapPlugin } from '@hexajs-dev/ui';
function hexaBootstrapPlugin(bootstrapPath: string, options?: HexaBootstrapPluginOptions): Plugin