mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fork ReactDOMSharedInternals for www (#25791)
This isn't the right way to do this, but internally we have some restrictions so we need to add an indirection. Let's land this now so we can catch up our sync and then fix forward from there. Co-authored-by: Jan Kassens <jkassens@meta.com>
This commit is contained in:
@@ -70,6 +70,14 @@ const forks = Object.freeze({
|
||||
if (entry === 'react-dom' || entry === 'react-dom/server-rendering-stub') {
|
||||
return './packages/react-dom/src/ReactDOMSharedInternals.js';
|
||||
}
|
||||
switch (bundleType) {
|
||||
case FB_WWW_DEV:
|
||||
case FB_WWW_PROD:
|
||||
case FB_WWW_PROFILING:
|
||||
return './packages/shared/forks/ReactDOMSharedInternals.www.js';
|
||||
default:
|
||||
break;
|
||||
}
|
||||
if (
|
||||
!entry.startsWith('react-dom/') &&
|
||||
dependencies.indexOf('react-dom') === -1
|
||||
|
||||
Reference in New Issue
Block a user