Expand description
Main entrypoint for the React Compiler.
This module is a port of Program.ts from the TypeScript compiler. It orchestrates the compilation of a program by:
- Checking if compilation should be skipped
- Validating restricted imports
- Finding program-level suppressions
- Discovering functions to compile (components, hooks)
- Processing each function through the compilation pipeline
- Applying compiled functions back to the AST
Functionsยง
- compile_
program - Main entry point for the React Compiler.