main
js 40 lines 1022 Bytes
Raw
1 /**
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 // This file is only used for tests.
9 // It lazily loads the implementation so that we get the correct set of host configs.
10
11 import ReactVersion from 'shared/ReactVersion';
12 export {ReactVersion as version};
13
14 export function prerenderToNodeStream() {
15 return require('./src/server/react-dom-server.node').prerenderToNodeStream.apply(
16 this,
17 arguments,
18 );
19 }
20
21 export function prerender() {
22 return require('./src/server/react-dom-server.node').prerender.apply(
23 this,
24 arguments,
25 );
26 }
27
28 export function resumeAndPrerenderToNodeStream() {
29 return require('./src/server/react-dom-server.node').resumeAndPrerenderToNodeStream.apply(
30 this,
31 arguments,
32 );
33 }
34
35 export function resumeAndPrerender() {
36 return require('./src/server/react-dom-server.node').resumeAndPrerender.apply(
37 this,
38 arguments,
39 );
40 }