@omnix-lang/dev-server
v0.1.1
Published
Development server with HMR for Omnix applications
Readme
@omnix-lang/dev-server
Internal — This package is not published to npm. It is used within the Omnix monorepo.
Vite 6 dev server plugin for Omnix. Integrates the Omnix compiler, route planner, SSR hydration, HMR, and RPC handler resolution into a single Vite plugin with multi-environment support (client, SSR, edge).
Import
import {
omnixVitePlugin,
getOmnixEnvironments,
createClientEnvironment,
createSsrEnvironment,
createEdgeEnvironment,
} from '@omnix-lang/dev-server';Usage (within workspace)
import { omnixVitePlugin } from '@omnix-lang/dev-server';
export default defineConfig({
plugins: [omnixVitePlugin({ rootDir: './src', platform: 'web' })],
environments: getOmnixEnvironments(),
});The plugin handles TSX compilation, route manifest generation, SSR with loader execution, and HMR for component hot-patching.
API Reference
API documentation is generated by TypeDoc. Run pnpm docs to generate locally.
