-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: tools.swc.jsc.transform.react
config overrides takes no effect
#3418
Comments
overrided by fixed by export default defineConfig({
plugins: [pluginReact({
swcReactOptions: {
runtime: 'classic'
}
})],
tools: {
// swc(config) {
// (((config.jsc ??= {}).transform ??= {}).react ??= {}).runtime =
// 'classic';
// },
},
}); |
tools.swc.jsc.transform.react
config overrides takes no effect
so pluginSwc should execute after pluginReact? modernjs has no entry for modifying the options of pluginReact @chenjiahan cc |
This is an order issue, I think we can try to let |
I cannot get |
Yes, let me think if there is a better way... |
Version
Details
rsbuild.config.ts
DEBUG=rsbuild rsbuild build
Reproduce link
https://github.com/SoonIter/rsbuild-tools-swc-issue-repro
Reproduce Steps
rsbuild/packages/core/src/plugins/swc.ts
Line 158 in 14c5a9e
The text was updated successfully, but these errors were encountered: