Skip to content

Commit

Permalink
Move fizz external runtime implementation to react-dom-bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
mofeiZ committed Nov 2, 2022
1 parent 1a90262 commit 6e5e622
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions packages/react-dom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/react-dom/unstable_server-external-runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
* @flow
*/

export * from 'react-dom/src/server/ReactDOMServerExternalRuntime';
export * from 'react-dom-bindings/src/server/ReactDOMServerExternalRuntime';
2 changes: 1 addition & 1 deletion scripts/rollup/bundles.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,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,
Expand Down
4 changes: 2 additions & 2 deletions scripts/shared/inlinedHostConfigs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/server.node',
'react-server-dom-webpack/client',
],
Expand Down Expand Up @@ -53,7 +53,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/server.browser',
'react-server-dom-webpack/client',
],
Expand Down

0 comments on commit 6e5e622

Please sign in to comment.