ReactFlightWebpackPlugin.js — react Source File
Architecture documentation for ReactFlightWebpackPlugin.js, a javascript file in the react codebase. 10 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 030915be_dad8_6901_9c1b_0baca4915190["ReactFlightWebpackPlugin.js"] ecf040cb_2f00_8f57_1b89_0fb87fd99487["ReactFlightImportMetadata.js"] 030915be_dad8_6901_9c1b_0baca4915190 --> ecf040cb_2f00_8f57_1b89_0fb87fd99487 b402a0fc_00db_e86d_b1ea_ad4f8e9faaca["path"] 030915be_dad8_6901_9c1b_0baca4915190 --> b402a0fc_00db_e86d_b1ea_ad4f8e9faaca f1eacfc5_abd5_28ac_35ad_cf5f65bdf7b7["url"] 030915be_dad8_6901_9c1b_0baca4915190 --> f1eacfc5_abd5_28ac_35ad_cf5f65bdf7b7 5724b7f2_726a_b935_3fb8_c9d43adeb128["neo-async"] 030915be_dad8_6901_9c1b_0baca4915190 --> 5724b7f2_726a_b935_3fb8_c9d43adeb128 600a2aba_9e9c_20eb_3073_e18698c5171f["acorn-loose"] 030915be_dad8_6901_9c1b_0baca4915190 --> 600a2aba_9e9c_20eb_3073_e18698c5171f 3eeecc55_7b6d_ff6a_d36a_056d30cd71b4["ModuleDependency"] 030915be_dad8_6901_9c1b_0baca4915190 --> 3eeecc55_7b6d_ff6a_d36a_056d30cd71b4 d6eac073_2c1c_7d17_5dfe_1b1c821b4fac["NullDependency"] 030915be_dad8_6901_9c1b_0baca4915190 --> d6eac073_2c1c_7d17_5dfe_1b1c821b4fac 4f6b01e1_0c9f_b034_87b5_d805bd9a4e37["Template"] 030915be_dad8_6901_9c1b_0baca4915190 --> 4f6b01e1_0c9f_b034_87b5_d805bd9a4e37 e56d22b0_6812_06c5_52fa_54cbb46f3db0["webpack"] 030915be_dad8_6901_9c1b_0baca4915190 --> e56d22b0_6812_06c5_52fa_54cbb46f3db0 af78c51d_c7cb_3bf4_550f_f3fcc48f4f34["isArray"] 030915be_dad8_6901_9c1b_0baca4915190 --> af78c51d_c7cb_3bf4_550f_f3fcc48f4f34 style 030915be_dad8_6901_9c1b_0baca4915190 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 {ImportManifestEntry} from './shared/ReactFlightImportMetadata';
import {join} from 'path';
import {pathToFileURL} from 'url';
import asyncLib from 'neo-async';
import * as acorn from 'acorn-loose';
import ModuleDependency from 'webpack/lib/dependencies/ModuleDependency';
import NullDependency from 'webpack/lib/dependencies/NullDependency';
import Template from 'webpack/lib/Template';
import {
sources,
WebpackError,
Compilation,
AsyncDependenciesBlock,
} from 'webpack';
import isArray from 'shared/isArray';
class ClientReferenceDependency extends ModuleDependency {
constructor(request: mixed) {
super(request);
}
get type(): string {
return 'client-reference';
}
}
// This is the module that will be used to anchor all client references to.
// I.e. it will have all the client files as async deps from this point on.
// We use the Flight client implementation because you can't get to these
// without the client runtime so it's the first time in the loading sequence
// you might want them.
const clientImportName = 'react-server-dom-webpack/client';
const clientFileName = require.resolve('../client.browser.js');
type ClientReferenceSearchPath = {
directory: string,
recursive?: boolean,
include: RegExp,
exclude?: RegExp,
};
type ClientReferencePath = string | ClientReferenceSearchPath;
type Options = {
isServer: boolean,
clientReferences?: ClientReferencePath | $ReadOnlyArray<ClientReferencePath>,
chunkName?: string,
clientManifestFilename?: string,
// ... (467 more lines)
Domain
Subdomains
Classes
Dependencies
- ModuleDependency
- NullDependency
- ReactFlightImportMetadata.js
- Template
- acorn-loose
- isArray
- neo-async
- path
- url
- webpack
Source
Frequently Asked Questions
What does ReactFlightWebpackPlugin.js do?
ReactFlightWebpackPlugin.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Validation subdomain.
What does ReactFlightWebpackPlugin.js depend on?
ReactFlightWebpackPlugin.js imports 10 module(s): ModuleDependency, NullDependency, ReactFlightImportMetadata.js, Template, acorn-loose, isArray, neo-async, path, and 2 more.
Where is ReactFlightWebpackPlugin.js in the architecture?
ReactFlightWebpackPlugin.js is located at packages/react-server-dom-webpack/src/ReactFlightWebpackPlugin.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-server-dom-webpack/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free