Skip to main content

Crate oxc_react_compiler

Crate oxc_react_compiler 

Source

Modules§

apply_renames
Apply the React Compiler’s binding renames to identifiers in uncompiled sibling code (compiled functions already carry the renamed identifiers).
convert_ast
convert_ast_reverse
Reverse AST converter: react_compiler_ast (Babel format) → OXC AST.
convert_scope
diagnostics
prefilter

Structs§

DynamicGatingConfig
Dynamic gating configuration
GatingConfig
Gating configuration
LintResult
PluginOptions
Serializable plugin options, pre-resolved by the JS shim. JS-only values (sources function, logger, etc.) are resolved before being sent to Rust.
TransformResult

Enums§

CompilerTarget
Target configuration for the compiler

Functions§

default_plugin_options
PluginOptions with the compiler’s standard defaults (it has no Default). Override fields with struct-update syntax: PluginOptions { ..default_plugin_options() }.
lint
Lint a pre-parsed program — like transform but only collects diagnostics.
lint_source
Convenience wrapper — parses source text, runs semantic analysis, then lints.
run
Run the React Compiler as a standalone pass, returning the Scoping for the rest of the pipeline (rebuilt if the program changed). Must run first, on the pristine AST, before any other transform.
transform
Transform a pre-parsed program. program is None when nothing was compiled.
transform_source
Convenience wrapper — parses source text, runs semantic analysis, then transforms.