Vite integration
Compile Beast before Octane in memory while keeping normal development, HMR, SSR, and production builds.
Use beastOctane() once for projects that contain both Beast and native TSRX modules.
vite.config.tsts
import { defineConfig } from "vite";import { beastOctane } from "beast-tsrx/vite"; export default defineConfig({ plugins: [ beastOctane({ octane: { strong: true }, }), ],});src/main.tsts
import App from "./App.btsx";import { NativePanel } from "./NativePanel.tsrx";- Generates TSRX in memory during Vite pre-transform
- Passes generated code to Octane's public bundler compiler
- Forwards HMR invalidation for .btsx changes
- Selects Octane's server environment for SSR transforms
- Allows per-file componentName and propsParam overrides