Home / File/ ReactFlightClientConfigTargetESMServer.js — react Source File

ReactFlightClientConfigTargetESMServer.js — react Source File

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

File javascript BabelCompiler Validation 1 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  c2940ee4_f4ad_615d_2ffc_24a6ec02ad48["ReactFlightClientConfigTargetESMServer.js"]
  d760bfed_8ff4_8e36_bbe8_dd60e8ce6809["ReactFlightClientConfig"]
  c2940ee4_f4ad_615d_2ffc_24a6ec02ad48 --> d760bfed_8ff4_8e36_bbe8_dd60e8ce6809
  style c2940ee4_f4ad_615d_2ffc_24a6ec02ad48 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.
 *
 * @flow
 */

import {preinitModuleForSSR} from 'react-client/src/ReactFlightClientConfig';

export type ModuleLoading =
  | null
  | string
  | {
      prefix: string,
      crossOrigin?: string,
    };

export function prepareDestinationForModuleImpl(
  moduleLoading: ModuleLoading,
  // Chunks are double-indexed [..., idx, filenamex, idy, filenamey, ...]
  mod: string,
  nonce: ?string,
) {
  if (typeof moduleLoading === 'string') {
    preinitModuleForSSR(moduleLoading + mod, nonce, undefined);
  } else if (moduleLoading !== null) {
    preinitModuleForSSR(
      moduleLoading.prefix + mod,
      nonce,
      moduleLoading.crossOrigin,
    );
  }
}

Domain

Subdomains

Dependencies

  • ReactFlightClientConfig

Frequently Asked Questions

What does ReactFlightClientConfigTargetESMServer.js do?
ReactFlightClientConfigTargetESMServer.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 ReactFlightClientConfigTargetESMServer.js?
ReactFlightClientConfigTargetESMServer.js defines 1 function(s): prepareDestinationForModuleImpl.
What does ReactFlightClientConfigTargetESMServer.js depend on?
ReactFlightClientConfigTargetESMServer.js imports 1 module(s): ReactFlightClientConfig.
Where is ReactFlightClientConfigTargetESMServer.js in the architecture?
ReactFlightClientConfigTargetESMServer.js is located at packages/react-server-dom-esm/src/client/ReactFlightClientConfigTargetESMServer.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-server-dom-esm/src/client).

Analyze Your Own Codebase

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

Try Supermodel Free