Licence
MIT
Version
0.0.181
Deps
1
Size
18 kB
Vulns
0
Weekly
1.9K
@reckona/mreact-vite
@reckona/mreact-vite is the lower-level Vite plugin for compiling mreact
modules. It wires the mreact compiler into Vite transforms.
For app-router projects, start with @reckona/create-mreact-app or use mreactRouter() from @reckona/mreact-router/vite. Use this package when you need the compiler transform without route discovery or production app-router builds.
Installation
pnpm add @reckona/mreact-vite @reckona/mreact viteBasic Usage
import { defineConfig } from "vite";
import { modularReact } from "@reckona/mreact-vite";
export default defineConfig({
plugins: [modularReact()],
});Options
modularReact({
include: [/\.mreact\.tsx$/],
target: "client",
});Notes
For app-router projects, prefer mreactRouter() from @reckona/mreact-router/vite. That plugin owns route discovery, dev middleware, client bundle inference, and production builds.