Reference

@reckona/mreact-compiler/oxc

39 public exports.

Function

FunctionanalyzeCompilerModuleContextWithOxcfunction 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

InterfaceAnalyzeModuleOptionsinterface 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.InterfaceOxcParityResultinterface OxcParityResultReports OXC analysis parity data used by compiler migration and diagnostics tests.InterfacePropAliasIrinterface PropAliasIrRepresents a plain object destructuring alias from a component parameter.

Re-export

Re-exportAnalyzeToIrInputconst 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: unknown

Type Alias

Type AliasBodyStatementJsxModetype BodyStatementJsxMode = "dom-node" | "compat-object" | "server-string" | "unsupported"Names how JSX found in component body statements should be lowered.