mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
- Adds experimental.rustReactCompiler config option to the next.js config to opt in. It should be used alongside `config.reactCompiler` and errors if not set. - Only runs the compiler on client code (and SSR), not RSC - When enabled, runs the compiler directly on Turbopack's swc AST with no gen+reparse. This required passing through the original source text into source transforms.
8 lines
166 B
JavaScript
8 lines
166 B
JavaScript
export function jsx() {
|
|
return 'purposefully empty stub for react/index.js'
|
|
}
|
|
|
|
export function useState() {
|
|
return 'purposefully empty stub for react/index.js'
|
|
}
|