Home / File/ server.bun.js — react Source File

server.bun.js — react Source File

Architecture documentation for server.bun.js, a javascript file in the react codebase. 1 imports, 0 dependents.

File javascript BabelCompiler Validation 1 imports 6 functions

Entity Profile

Dependency Diagram

graph LR
  f9cb2c9f_6b02_7899_e9d5_88a202cdb25b["server.bun.js"]
  0b5d77d6_fa00_515b_1198_0f2d2642dc21["ReactVersion"]
  f9cb2c9f_6b02_7899_e9d5_88a202cdb25b --> 0b5d77d6_fa00_515b_1198_0f2d2642dc21
  style f9cb2c9f_6b02_7899_e9d5_88a202cdb25b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

// This file is only used for tests.
// It lazily loads the implementation so that we get the correct set of host configs.

import ReactVersion from 'shared/ReactVersion';
export {ReactVersion as version};

export function renderToReadableStream() {
  return require('./src/server/react-dom-server.bun').renderToReadableStream.apply(
    this,
    arguments,
  );
}

export function renderToString() {
  return require('./src/server/ReactDOMLegacyServerBrowser').renderToString.apply(
    this,
    arguments,
  );
}

export function renderToStaticMarkup() {
  return require('./src/server/ReactDOMLegacyServerBrowser').renderToStaticMarkup.apply(
    this,
    arguments,
  );
}

export function resume() {
  return require('./src/server/react-dom-server.bun').resume.apply(
    this,
    arguments,
  );
}

export function renderToPipeableStream() {
  return require('./src/server/react-dom-server.bun').renderToPipeableStream.apply(
    this,
    arguments,
  );
}

export function resumeToPipeableStream() {
  return require('./src/server/react-dom-server.bun').resumeToPipeableStream.apply(
    this,
    arguments,
  );
}

Domain

Subdomains

Dependencies

  • ReactVersion

Frequently Asked Questions

What does server.bun.js do?
server.bun.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Validation subdomain.
What functions are defined in server.bun.js?
server.bun.js defines 6 function(s): renderToPipeableStream, renderToReadableStream, renderToStaticMarkup, renderToString, resume, resumeToPipeableStream.
What does server.bun.js depend on?
server.bun.js imports 1 module(s): ReactVersion.
Where is server.bun.js in the architecture?
server.bun.js is located at packages/react-dom/server.bun.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-dom).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free