@reckona/mreact-compiler
v0.0.16
Published
Compiler passes and OXC-backed JSX analysis for mreact.
Maintainers
Readme
@reckona/mreact-compiler
@reckona/mreact-compiler contains the compiler passes used by mreact. It
analyzes JSX modules, produces client and server output, and reports diagnostics
for code that cannot be compiled safely.
Usage
import { transform } from "@reckona/mreact-compiler";
const result = transform({
filename: "app/page.tsx",
source: `export default function Page() { return <main>Hello</main>; }`,
target: "server",
});Exports
transform()is the public compiler entrypoint.@reckona/mreact-compiler/internalexposes lower-level IR analysis helpers used by the router and tests.@reckona/mreact-compiler/oxcexposes the Oxc-backed analyzer path.
Notes
This package is intended for framework integration and tooling. Application
projects should normally consume it through @reckona/mreact-router or
@reckona/mreact-vite.
