Skip to content

Commit a154fe9

Browse files
alunyovAndyPengc12
authored andcommitted
[meta-only] Move ReactServerStreamConfigFB to react-server from react-server-dom-fb (facebook#27544)
Code organization PR. It looks like the `ReactServerStreamConfigFB` is only used in the `relay-server` package. This PR moves it to `react-server` from `react-server-dom-fb` (similar to how we have config for bun, for example). This avoids cross-package imports from `react-server` to `react-server-dom-fb.`
1 parent 7a18588 commit a154fe9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/react-server-dom-fb/src/ReactServerStreamConfigFB.js renamed to packages/react-server/src/ReactServerStreamConfigFB.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,4 @@ export function closeWithError(destination: Destination, error: mixed): void {
8484
destination.error = error;
8585
}
8686

87-
export {createFastHashJS as createFastHash} from 'react-server/src/createFastHashJS';
87+
export {createFastHashJS as createFastHash} from './createFastHashJS';

packages/react-server/src/forks/ReactServerStreamConfig.dom-fb.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
* @flow
88
*/
99

10-
export * from '../../../react-server-dom-fb/src/ReactServerStreamConfigFB';
10+
export * from '../ReactServerStreamConfigFB';

0 commit comments

Comments
 (0)