Home / File/ ReactFlightClientConfigBundlerNode.js — react Source File

ReactFlightClientConfigBundlerNode.js — react Source File

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

File javascript BabelCompiler Validation 5 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  71392b96_14d7_d4ad_f997_79e184462aec["ReactFlightClientConfigBundlerNode.js"]
  2396266a_5487_f53e_5c02_e8f8112f09c9["ReactFlightImportMetadata.js"]
  71392b96_14d7_d4ad_f997_79e184462aec --> 2396266a_5487_f53e_5c02_e8f8112f09c9
  9c2b2236_9d6c_1c8c_4e6d_3bece0e618f5["isAsyncImport"]
  71392b96_14d7_d4ad_f997_79e184462aec --> 9c2b2236_9d6c_1c8c_4e6d_3bece0e618f5
  d8f20c67_f5fa_0f0a_c967_c41fd9ffce07["ReactTypes"]
  71392b96_14d7_d4ad_f997_79e184462aec --> d8f20c67_f5fa_0f0a_c967_c41fd9ffce07
  d760bfed_8ff4_8e36_bbe8_dd60e8ce6809["ReactFlightClientConfig"]
  71392b96_14d7_d4ad_f997_79e184462aec --> d760bfed_8ff4_8e36_bbe8_dd60e8ce6809
  a413acd5_7541_e904_f255_d4dd9b5e5bc1["hasOwnProperty"]
  71392b96_14d7_d4ad_f997_79e184462aec --> a413acd5_7541_e904_f255_d4dd9b5e5bc1
  style 71392b96_14d7_d4ad_f997_79e184462aec 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 type {
  Thenable,
  FulfilledThenable,
  RejectedThenable,
} from 'shared/ReactTypes';

import type {ImportMetadata} from '../shared/ReactFlightImportMetadata';
import type {ModuleLoading} from 'react-client/src/ReactFlightClientConfig';

import {
  ID,
  CHUNKS,
  NAME,
  isAsyncImport,
} from '../shared/ReactFlightImportMetadata';
import {prepareDestinationWithChunks} from 'react-client/src/ReactFlightClientConfig';

import hasOwnProperty from 'shared/hasOwnProperty';

export type ServerConsumerModuleMap = {
  [clientId: string]: {
    [clientExportName: string]: ClientReference<any>,
  },
};

export type ServerManifest = void;

export type ServerReferenceId = string;

export opaque type ClientReferenceMetadata = ImportMetadata;

// eslint-disable-next-line no-unused-vars
export opaque type ClientReference<T> = {
  specifier: string,
  name: string,
  async?: boolean,
};

// The reason this function needs to defined here in this file instead of just
// being exported directly from the WebpackDestination... file is because the
// ClientReferenceMetadata is opaque and we can't unwrap it there.
// This should get inlined and we could also just implement an unwrapping function
// though that risks it getting used in places it shouldn't be. This is unfortunate
// but currently it seems to be the best option we have.
export function prepareDestinationForModule(
  moduleLoading: ModuleLoading,
  nonce: ?string,
  metadata: ClientReferenceMetadata,
) {
  prepareDestinationWithChunks(moduleLoading, metadata[CHUNKS], nonce);
}
// ... (114 more lines)

Domain

Subdomains

Dependencies

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free