mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
We did some cleanup internally of our ReactDOM module, so this fork should be safe to remove now. Will land this only after our internal diff lands.
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @flow
|
||||
*/
|
||||
|
||||
// $FlowIgnore[cannot-resolve-module] provided by www
|
||||
const ReactDOM = require('ReactDOMComet');
|
||||
|
||||
const ReactDOMSharedInternals =
|
||||
ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
||||
|
||||
export default ReactDOMSharedInternals;
|
||||
@@ -70,14 +70,6 @@ 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