Replies: 2 comments
-
I would suggest specifying that it can be used with 17 and 18 through the config : pluginBabel({
include: /\.(?:jsx|tsx)$/,
babelLoaderOptions(opts) {
opts.plugins?.unshift(['babel-plugin-react-compiler', { target: '17' }]);
},
}), |
Beta Was this translation helpful? Give feedback.
0 replies
-
When we write the Rsbuild + React Compiler documentation, React Compiler only supports React 19. Now React Compiler has supported React 17 and 18, I have updated the Rsbuild documentation for React 17 and 18, see: #4198 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
According to the docs, we must upgrade to react 19 to use the react compiler.
Is that correct or can we use the compiler + rsbuild with react 17 and 18 ?
The official docs from react point out that the compiler supports 17 and 18 so I'm wondering why rsbuild wouldn't allow it considering it is used by many legacy projects that cannot upgrade their dependencies easily.
Beta Was this translation helpful? Give feedback.
All reactions