Skip to content

☂️ useReactCompiler remaining work #10974

Description

@dyc3

Description

Failing test cases from upstream that need to be evaluated:

# --- Biome matches Babel's canonical output; the OXC oracle under-reports ---
# Biome emits exactly the error the fixture's own .expect.md documents; OXC
# misses it (loses the local-vs-context / optional-chaining-dependency
# distinction). These are oracle limitations, not Biome bugs.
error.bug-invariant-local-or-context-references.js
preserve-memo-validation/error.useCallback-conditional-access-noAlloc.ts

# --- Documented React Compiler Rust-port frontier (backend, not Biome) ---
# Minified CommonJS prod code; the fixture header documents a known
# PromoteUsedTemporaries divergence in the Rust port itself.
todo-round3_promote_used_temps.js

# --- Deep edge cases on `error.` fixtures; both frontends still flag an error ---
# default-param-accesses-local: Biome compiles where Babel/OXC bail with a
#   reorderability Todo on an arrow-valued default parameter.
# invalid-hook-optional-property: Biome flags a Hooks violation but with a
#   different reason than the conditional-call wording (optional-chained hook).
# invalid-unclosed-eslint-suppression: multi-error fixture; the two frontends
#   surface overlapping-but-different secondary errors (both report VoidUseMemo).
error.default-param-accesses-local.js
rules-of-hooks/error.invalid-hook-optional-property.js
error.invalid-unclosed-eslint-suppression.js

Requires forking:

  • Remove brittle string comparisons for the diagnostics we emit.
  • Skip converting Biome CST -> Babel AST -> React Compiler HIR, just go straight from Biome CST -> HIR

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions