From d02e39a39285316fae4b9b8fee1e1c54e99ab4a4 Mon Sep 17 00:00:00 2001 From: Sebastian Markbage Date: Wed, 29 Mar 2023 23:20:57 -0400 Subject: [PATCH] Move ReactDOMFloat to react-dom/src/ This is not really part of the bindings, it's more part of the package entry points. /shared/ is not really right neither because it's more like an isomorphic entry point and not some utility. --- .../src/shared => react-dom/src}/ReactDOMFloat.js | 0 packages/react-dom/src/client/ReactDOM.js | 7 +------ .../react-dom/src/server/ReactDOMServerRenderingStub.js | 7 +------ 3 files changed, 2 insertions(+), 12 deletions(-) rename packages/{react-dom-bindings/src/shared => react-dom/src}/ReactDOMFloat.js (100%) diff --git a/packages/react-dom-bindings/src/shared/ReactDOMFloat.js b/packages/react-dom/src/ReactDOMFloat.js similarity index 100% rename from packages/react-dom-bindings/src/shared/ReactDOMFloat.js rename to packages/react-dom/src/ReactDOMFloat.js diff --git a/packages/react-dom/src/client/ReactDOM.js b/packages/react-dom/src/client/ReactDOM.js index c39f35f785c8c..ef5d3234190ec 100644 --- a/packages/react-dom/src/client/ReactDOM.js +++ b/packages/react-dom/src/client/ReactDOM.js @@ -55,12 +55,7 @@ import { } from 'react-dom-bindings/src/events/ReactDOMControlledComponent'; import Internals from '../ReactDOMSharedInternals'; -export { - prefetchDNS, - preconnect, - preload, - preinit, -} from 'react-dom-bindings/src/shared/ReactDOMFloat'; +export {prefetchDNS, preconnect, preload, preinit} from '../ReactDOMFloat'; if (__DEV__) { if ( diff --git a/packages/react-dom/src/server/ReactDOMServerRenderingStub.js b/packages/react-dom/src/server/ReactDOMServerRenderingStub.js index 29b3938c28a74..29b53d5c51704 100644 --- a/packages/react-dom/src/server/ReactDOMServerRenderingStub.js +++ b/packages/react-dom/src/server/ReactDOMServerRenderingStub.js @@ -7,12 +7,7 @@ * @flow */ -export { - preinit, - preload, - preconnect, - prefetchDNS, -} from 'react-dom-bindings/src/shared/ReactDOMFloat'; +export {preinit, preload, preconnect, prefetchDNS} from '../ReactDOMFloat'; export function createPortal() { throw new Error(