Skip to content

Commit 5e7089d

Browse files
committed
add react-dom alias to allow some replacements
1 parent e36b8f4 commit 5e7089d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,4 @@ yarn-error.log*
1717
.yalc
1818
yalc.lock
1919

20-
# TODO: remove this file in the future
2120
!temp/*.tgz

config/webpack.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,9 @@ const baseConfigFactory = function (webpackEnv) {
282282
'react-dom$': 'react-dom/profiling',
283283
'scheduler/tracing': 'scheduler/tracing-profiling',
284284
}),
285+
// Allows replacing react-dom with @reactunity/renderer to support some functionality like `unstable_batchedUpdates`
286+
'react-dom': '@reactunity/renderer',
287+
285288
...(modules.webpackAliases || {}),
286289
},
287290
plugins: [

0 commit comments

Comments
 (0)