react/compiler/packages/babel-plugin-react-compiler
mofeiZ d16fe4be5b
[compiler] Playground qol: shared compilation option directives with tests (#32012)
- Adds @compilationMode(all|infer|syntax|annotation) and
@panicMode(none) directives. This is now shared with our test infra
- Playground still defaults to `infer` mode while tests default to `all`
mode
- See added fixture tests
2025-01-09 12:38:16 -05:00
..
scripts [compiler] Switch to esbuild (#31963) 2025-01-02 16:59:56 -05:00
src [compiler] Playground qol: shared compilation option directives with tests (#32012) 2025-01-09 12:38:16 -05:00
jest.config.js Compiler: unfork prettier config (#30205) 2024-07-18 17:00:24 -04:00
package.json [rcr] Generate ts defs (#31994) 2025-01-06 11:01:38 -05:00
README.md
tsconfig.json

babel-plugin-react-compiler

React Compiler is a compiler that optimizes React applications, ensuring that only the minimal parts of components and hooks will re-render when state changes. The compiler also validates that components and hooks follow the Rules of React.

This package contains the React Compiler Babel plugin use in projects that make use of Babel. You can find instructions for using this plugin here: https://react.dev/learn/react-compiler