react/compiler/packages/babel-plugin-react-compiler
lauren 989b0cccc2
[compiler] Add simple walltime measurement (#32331)
Adds a new Timing logger event to the compiler which currently only
records the walltime of running the compiler from the time the babel
plugin's Program visitor enters to the time it exits.

To enable, run the compiler with `ENABLE_REACT_COMPILER_TIMINGS=1 ...`
or `export ENABLE_REACT_COMPILER_TIMINGS=1` to set it by default.
2025-02-07 16:04:46 -05:00
..
scripts [compiler] Switch to esbuild (#31963) 2025-01-02 16:59:56 -05:00
src [compiler] Add simple walltime measurement (#32331) 2025-02-07 16:04:46 -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