diff --git a/packages/react-dom/src/server/ReactDOMServerExternalRuntime.js b/packages/react-dom-bindings/src/server/ReactDOMServerExternalRuntime.js similarity index 89% rename from packages/react-dom/src/server/ReactDOMServerExternalRuntime.js rename to packages/react-dom-bindings/src/server/ReactDOMServerExternalRuntime.js index 1260df97965d1..01f53697e2e5f 100644 --- a/packages/react-dom/src/server/ReactDOMServerExternalRuntime.js +++ b/packages/react-dom-bindings/src/server/ReactDOMServerExternalRuntime.js @@ -11,7 +11,7 @@ import { completeBoundaryWithStyles, completeBoundary, completeSegment, -} from '../../../react-dom-bindings/src/server/fizz-instruction-set/ReactDOMFizzInstructionSet'; +} from './fizz-instruction-set/ReactDOMFizzInstructionSet'; // Intentionally does nothing. Implementation will be added in future PR. // eslint-disable-next-line no-unused-vars diff --git a/packages/react-dom/package.json b/packages/react-dom/package.json index baa9032ef4c62..ee675b040a9db 100644 --- a/packages/react-dom/package.json +++ b/packages/react-dom/package.json @@ -65,6 +65,7 @@ "./profiling": "./profiling.js", "./test-utils": "./test-utils.js", "./unstable_testing": "./unstable_testing.js", + "./unstable_server-external-runtime": "./unstable_server-external-runtime.js", "./src/*": "./src/*", "./package.json": "./package.json" }, diff --git a/packages/react-dom/unstable_server-external-runtime.js b/packages/react-dom/unstable_server-external-runtime.js index 8f74a926da732..2cd755b27b3ad 100644 --- a/packages/react-dom/unstable_server-external-runtime.js +++ b/packages/react-dom/unstable_server-external-runtime.js @@ -7,4 +7,4 @@ * @flow */ -export * from 'react-dom/src/server/ReactDOMServerExternalRuntime'; +export * from 'react-dom-bindings/src/server/ReactDOMServerExternalRuntime'; diff --git a/scripts/rollup/bundles.js b/scripts/rollup/bundles.js index 81072166a0269..47bd6d257e4a6 100644 --- a/scripts/rollup/bundles.js +++ b/scripts/rollup/bundles.js @@ -357,7 +357,7 @@ const bundles = [ { bundleTypes: [BROWSER_SCRIPT], moduleType: RENDERER, - entry: 'react-dom/src/server/ReactDOMServerExternalRuntime.js', + entry: 'react-dom/unstable_server-external-runtime', outputPath: 'unstable_server-external-runtime.js', global: 'ReactDOMServerExternalRuntime', minifyWithProdErrorCodes: false, diff --git a/scripts/shared/inlinedHostConfigs.js b/scripts/shared/inlinedHostConfigs.js index 027c71aa173b3..a67bfde43caea 100644 --- a/scripts/shared/inlinedHostConfigs.js +++ b/scripts/shared/inlinedHostConfigs.js @@ -15,7 +15,7 @@ module.exports = [ 'react-dom/src/server/ReactDOMFizzServerNode.js', 'react-dom/static.node', 'react-dom/server-rendering-stub', - 'react-dom/src/server/ReactDOMServerExternalRuntime.js', + 'react-dom/unstable_server-external-runtime', 'react-server-dom-webpack/writer.node.server', 'react-server-dom-webpack', ], @@ -52,7 +52,7 @@ module.exports = [ 'react-dom/src/server/ReactDOMFizzServerBrowser.js', 'react-dom/static.browser', 'react-dom/server-rendering-stub', - 'react-dom/src/server/ReactDOMServerExternalRuntime.js', + 'react-dom/unstable_server-external-runtime', 'react-server-dom-webpack/writer.browser.server', 'react-server-dom-webpack', ],