Files
Boshen 2dacf7a9b6 perf(oxlint): reduce debug formatting code size (#25797)
Use compact `Display` formatting for React Compiler terminals and reuse `ConfigBuilderError`'s existing `Display` implementation for `Debug`.

This reduces the release `oxlint` binary from 12,773,552 to 12,740,432 bytes: **-33,120 bytes (-0.26%)**, with `__text` reduced by 24,452 bytes.

Validated with the affected crate tests, workspace checks, and oxlint snapshot tests.

AI assistance was used for implementation and measurement.
2026-08-17 13:04:51 +00:00
..

Oxc React Compiler

oxc integration for the Rust port of the React Compiler.

Overview

This crate owns the oxc ↔ react_compiler_ast (Babel) conversion layer and runs the React Compiler over an oxc AST, memoizing React components and hooks. The compiler core crates are front-end agnostic (they never depend on oxc), so they are consumed from crates.io as a published fork; the AST and scope conversion lives here, written against the live oxc AST.

API

  • compile — run the compiler and return a CompileResult with the rewrite to apply (via CompileOutput::transform) plus diagnostics.
  • lint — report diagnostics only, without emitting code; each finding is tagged with its ErrorCategory.
  • PluginOptions — configure which functions are compiled and how.