Reference
@reckona/mreact-compiler/oxc
45 public exports.
Function
FunctionanalyzeCompilerModuleContextWithOxc
function analyzeCompilerModuleContextWithOxc(context: CompilerModuleContext, input: Omit<AnalyzeToIrInput, "code" | "filename">): AnalyzeToIrOutputAnalyzes a cached OXC compiler module context into compiler IR.FunctionanalyzeOxcParityfunction analyzeOxcParity(input: AnalyzeToIrInput): OxcParityResultCompares OXC component discovery and IR output against parity expectations for one module.FunctionanalyzeWithOxcfunction analyzeWithOxc(input: AnalyzeToIrInput): AnalyzeToIrOutputAnalyzes source code into compiler IR using OXC parsing and lowering.Interface
InterfaceAnalyzeModuleOptions
interface AnalyzeModuleOptionsConfigures lower-level module analysis before code emission.InterfaceClientReferenceIrinterface ClientReferenceIrRepresents a client module reference attached to a component in server output.InterfaceComponentNamedPropIrinterface ComponentNamedPropIrRepresents a named component prop with expression code.InterfaceComponentRenderPropIrinterface ComponentRenderPropIrRepresents a render-prop child lowered into the component prop list.InterfaceComponentSpreadPropIrinterface ComponentSpreadPropIrRepresents a spread prop expression passed to a component reference.InterfaceExpressionFactsIrinterface ExpressionFactsIrCarries the conservative facts proven about one lowered expression.InterfaceListParameterBindingIrinterface ListParameterBindingIrPreserves JavaScript parameter binding semantics while exposing live row values.InterfaceOxcParityResultinterface OxcParityResultReports OXC analysis parity data used by compiler migration and diagnostics tests.InterfacePropAliasIrinterface PropAliasIrRepresents a plain object destructuring alias from a component parameter.InterfaceResolvedBindingIrinterface ResolvedBindingIrIdentifies a binding by name and by the source span of the declarator that created it.Re-export
Re-exportAnalyzeToIrInput
const AnalyzeToIrInput: unknownRe-exportAnalyzeToIrOutputconst AnalyzeToIrOutput: unknownRe-exportAsyncBoundaryIrconst AsyncBoundaryIr: unknownRe-exportAttributeIrconst AttributeIr: unknownRe-exportCompiledSingleNodeListIrconst CompiledSingleNodeListIr: unknownRe-exportCompilerKeyedEventProgramIrconst CompilerKeyedEventProgramIr: unknownRe-exportCompilerModuleContextconst CompilerModuleContext: unknownRe-exportCompilerSelectedClassIrconst CompilerSelectedClassIr: unknownRe-exportCompileTargetconst CompileTarget: unknownRe-exportComponentIrconst ComponentIr: unknownRe-exportComponentPropIrconst ComponentPropIr: unknownRe-exportComponentRefIrconst ComponentRefIr: unknownRe-exportConditionalIrconst ConditionalIr: unknownRe-exportDiagnosticconst Diagnostic: unknownRe-exportDomRefAttributeIrconst DomRefAttributeIr: unknownRe-exportDynamicAttributeIrconst DynamicAttributeIr: unknownRe-exportEventAttributeIrconst EventAttributeIr: unknownRe-exportExprIrconst ExprIr: unknownRe-exportJsxElementIrconst JsxElementIr: unknownRe-exportJsxFragmentIrconst JsxFragmentIr: unknownRe-exportJsxNodeIrconst JsxNodeIr: unknownRe-exportListIrconst ListIr: unknownRe-exportModuleIrconst ModuleIr: unknownRe-exportServerOutputModeconst ServerOutputMode: unknownRe-exportSourceLocationconst SourceLocation: unknownRe-exportSpreadAttributeIrconst SpreadAttributeIr: unknownRe-exportStaticAttributeIrconst StaticAttributeIr: unknownRe-exportTextIrconst TextIr: unknownType Alias
Type AliasBodyStatementJsxMode
type BodyStatementJsxMode = "dom-node" | "compat-object" | "server-string" | "unsupported"Names how JSX found in component body statements should be lowered.Type AliasExpressionPhaseIrtype ExpressionPhaseIr = "server" | "attach" | "update" | "mount"Names one output phase a lowered expression can be required in.Type AliasExpressionValueIrtype ExpressionValueIr = { kind: "unknown" } | { binding: ResolvedBindingIr; kind: "native-cell-read" } | { kind: "renderable-primitive" } | { kind: "component-prop-read" }Describes the proven value shape of a lowered expression.Type AliasFactCertaintytype FactCertainty = "proven" | "unknown"Names one conservative certainty level used by compiler facts.