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