Home / File/ ReactFlightClientConfigBundlerTurbopack.js — react Source File

ReactFlightClientConfigBundlerTurbopack.js — react Source File

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

Entity Profile

Dependency Diagram

graph LR
  ed5d8ab8_d41a_ce7b_9c4c_86e7deeee4c8["ReactFlightClientConfigBundlerTurbopack.js"]
  8c630d72_8245_cbaa_84bb_2d827c5947cf["ReactFlightImportMetadata.js"]
  ed5d8ab8_d41a_ce7b_9c4c_86e7deeee4c8 --> 8c630d72_8245_cbaa_84bb_2d827c5947cf
  a61d18e7_5214_ff5f_dc82_708f82902393["isAsyncImport"]
  ed5d8ab8_d41a_ce7b_9c4c_86e7deeee4c8 --> a61d18e7_5214_ff5f_dc82_708f82902393
  d8f20c67_f5fa_0f0a_c967_c41fd9ffce07["ReactTypes"]
  ed5d8ab8_d41a_ce7b_9c4c_86e7deeee4c8 --> d8f20c67_f5fa_0f0a_c967_c41fd9ffce07
  d760bfed_8ff4_8e36_bbe8_dd60e8ce6809["ReactFlightClientConfig"]
  ed5d8ab8_d41a_ce7b_9c4c_86e7deeee4c8 --> d760bfed_8ff4_8e36_bbe8_dd60e8ce6809
  a413acd5_7541_e904_f255_d4dd9b5e5bc1["hasOwnProperty"]
  ed5d8ab8_d41a_ce7b_9c4c_86e7deeee4c8 --> a413acd5_7541_e904_f255_d4dd9b5e5bc1
  style ed5d8ab8_d41a_ce7b_9c4c_86e7deeee4c8 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,
  ReactDebugInfo,
} from 'shared/ReactTypes';

import type {
  ImportMetadata,
  ImportManifestEntry,
} 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 {
  loadChunk,
  addChunkDebugInfo,
} from 'react-client/src/ReactFlightClientConfig';

import hasOwnProperty from 'shared/hasOwnProperty';

export type ServerConsumerModuleMap = null | {
  [clientId: string]: {
    [clientExportName: string]: ClientReferenceManifestEntry,
  },
};

export type ServerManifest = {
  [id: string]: ImportManifestEntry,
};

export type ServerReferenceId = string;

export opaque type ClientReferenceManifestEntry = ImportManifestEntry;
export opaque type ClientReferenceMetadata = ImportMetadata;

// eslint-disable-next-line no-unused-vars
export opaque type ClientReference<T> = ClientReferenceMetadata;

// The reason this function needs to defined here in this file instead of just
// being exported directly from the TurbopackDestination... 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
// ... (211 more lines)

Domain

Dependencies

Frequently Asked Questions

What does ReactFlightClientConfigBundlerTurbopack.js do?
ReactFlightClientConfigBundlerTurbopack.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain.
What does ReactFlightClientConfigBundlerTurbopack.js depend on?
ReactFlightClientConfigBundlerTurbopack.js imports 5 module(s): ReactFlightClientConfig, ReactFlightImportMetadata.js, ReactTypes, hasOwnProperty, isAsyncImport.
Where is ReactFlightClientConfigBundlerTurbopack.js in the architecture?
ReactFlightClientConfigBundlerTurbopack.js is located at packages/react-server-dom-turbopack/src/client/ReactFlightClientConfigBundlerTurbopack.js (domain: BabelCompiler, directory: packages/react-server-dom-turbopack/src/client).

Analyze Your Own Codebase

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

Try Supermodel Free