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 renderToString() {
    
  15.   return require('./src/server/ReactDOMLegacyServerNode').renderToString.apply(
    
  16.     this,
    
  17.     arguments,
    
  18.   );
    
  19. }
    
  20. export function renderToStaticMarkup() {
    
  21.   return require('./src/server/ReactDOMLegacyServerNode').renderToStaticMarkup.apply(
    
  22.     this,
    
  23.     arguments,
    
  24.   );
    
  25. }
    
  26. export function renderToNodeStream() {
    
  27.   return require('./src/server/ReactDOMLegacyServerNode').renderToNodeStream.apply(
    
  28.     this,
    
  29.     arguments,
    
  30.   );
    
  31. }
    
  32. export function renderToStaticNodeStream() {
    
  33.   return require('./src/server/ReactDOMLegacyServerNode').renderToStaticNodeStream.apply(
    
  34.     this,
    
  35.     arguments,
    
  36.   );
    
  37. }
    
  38. 
    
  39. export function renderToPipeableStream() {
    
  40.   return require('./src/server/react-dom-server.node').renderToPipeableStream.apply(
    
  41.     this,
    
  42.     arguments,
    
  43.   );
    
  44. }
    
  45. 
    
  46. export function resumeToPipeableStream() {
    
  47.   return require('./src/server/react-dom-server.node').resumeToPipeableStream.apply(
    
  48.     this,
    
  49.     arguments,
    
  50.   );
    
  51. }