Skip to content

Commit c6131e5

Browse files
Add fallback for react-dom/client
1 parent e65b91c commit c6131e5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/util/createWebpackConfig.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,11 @@ export async function createWebpackConfig({
216216
plugins: rsBuildPlugins,
217217
tools: {
218218
rspack: {
219+
resolve: {
220+
fallback: {
221+
"react-dom/client": false,
222+
},
223+
},
219224
output: {
220225
uniqueName: exposeModules
221226
? `${packageName}__${buildEnv}__${process.env.BUILD_VERSION || 1}`

0 commit comments

Comments
 (0)