Integrations

Rspack integration

Compile Beast with Octane’s low-level Rspack plugin, including watch, SSR, hydration, and composed source maps.

source
Terminalshell
npm install octane@0.2.0npm install --save-dev @rspack/core@^2 @octanejs/rspack-plugin@0.1.47
rspack.config.mjsjs
import { beastOctane } from "beast-tsrx/rspack"; export default {  entry: "./src/main.ts",  plugins: [beastOctane({ octane: { strong: true } })],};

The adapter compiles .btsx, leaves native .tsrx and compiler-owned helpers to Octane, selects client or server output from the Rspack target, and registers source dependencies with Rspack’s cache and watcher.

Hydration resolution prefers real .tsrx files and falls back to the originating .btsx module. It recognizes .mjs, .mts, .cjs, and .cts modules and forwards composed BTSX-to-JavaScript source maps.