Home / File/ ReactFlightESMNodeLoader.js — react Source File

ReactFlightESMNodeLoader.js — react Source File

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

File javascript 3 imports

Entity Profile

Dependency Diagram

graph LR
  9536d321_be92_1da4_dcdd_aa1e77504340["ReactFlightESMNodeLoader.js"]
  a007b881_cc68_1854_f3b4_c7bf21346111["acorn-loose"]
  9536d321_be92_1da4_dcdd_aa1e77504340 --> a007b881_cc68_1854_f3b4_c7bf21346111
  92ca1ae8_3e23_c3d6_6aae_75f89a7c2ad6["readMappings.js"]
  9536d321_be92_1da4_dcdd_aa1e77504340 --> 92ca1ae8_3e23_c3d6_6aae_75f89a7c2ad6
  a3704361_7259_b786_0e32_fa8118438872["createMappingsSerializer.js"]
  9536d321_be92_1da4_dcdd_aa1e77504340 --> a3704361_7259_b786_0e32_fa8118438872
  style 9536d321_be92_1da4_dcdd_aa1e77504340 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 * as acorn from 'acorn-loose';

import readMappings from 'webpack-sources/lib/helpers/readMappings.js';
import createMappingsSerializer from 'webpack-sources/lib/helpers/createMappingsSerializer.js';

type ResolveContext = {
  conditions: Array<string>,
  parentURL: string | void,
};

type ResolveFunction = (
  string,
  ResolveContext,
  ResolveFunction,
) => {url: string} | Promise<{url: string}>;

type GetSourceContext = {
  format: string,
};

type GetSourceFunction = (
  string,
  GetSourceContext,
  GetSourceFunction,
) => Promise<{source: Source}>;

type TransformSourceContext = {
  format: string,
  url: string,
};

type TransformSourceFunction = (
  Source,
  TransformSourceContext,
  TransformSourceFunction,
) => Promise<{source: Source}>;

type LoadContext = {
  conditions: Array<string>,
  format: string | null | void,
  importAssertions: Object,
};

type LoadFunction = (
  string,
  LoadContext,
  LoadFunction,
) => Promise<{format: string, shortCircuit?: boolean, source: Source}>;

type Source = string | ArrayBuffer | Uint8Array;

// ... (745 more lines)

Dependencies

  • acorn-loose
  • createMappingsSerializer.js
  • readMappings.js

Frequently Asked Questions

What does ReactFlightESMNodeLoader.js do?
ReactFlightESMNodeLoader.js is a source file in the react codebase, written in javascript.
What does ReactFlightESMNodeLoader.js depend on?
ReactFlightESMNodeLoader.js imports 3 module(s): acorn-loose, createMappingsSerializer.js, readMappings.js.
Where is ReactFlightESMNodeLoader.js in the architecture?
ReactFlightESMNodeLoader.js is located at packages/react-server-dom-esm/src/ReactFlightESMNodeLoader.js (directory: packages/react-server-dom-esm/src).

Analyze Your Own Codebase

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

Try Supermodel Free