The first-party React Compiler, switched on with reactCompiler: true (stable since v16.0.0; enabled in this port). Next runs it through the Babel plugin, applied only to files with JSX or hooks; Next 16.4 also has an experimental native Rust build of the compiler, experimental.turbopackRustReactCompiler: true, used alongside reactCompiler: true.
const nextConfig: NextConfig = {
reactCompiler: true,
};
From this repo's next-books/next.config.ts (other options omitted).