Home / Function/ initDependencies() — react Function Reference

initDependencies() — react Function Reference

Architecture documentation for the initDependencies() function in run.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  bbb12404_ee2c_e8d4_436b_91f3a172ab01["initDependencies()"]
  e243e685_1a32_c31e_bb31_cb8b4ccc6d92["run.js"]
  bbb12404_ee2c_e8d4_436b_91f3a172ab01 -->|defined in| e243e685_1a32_c31e_bb31_cb8b4ccc6d92
  style bbb12404_ee2c_e8d4_436b_91f3a172ab01 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

fixtures/devtools/scheduling-profiler/run.js lines 24–36

function initDependencies() {
  if (existsSync(DEPENDENCIES_DIRECTORY)) {
    rmdirSync(DEPENDENCIES_DIRECTORY, {recursive: true});
  }
  mkdirSync(DEPENDENCIES_DIRECTORY);

  DEPENDENCIES.forEach(([from, to]) => {
    const fromPath = join(__dirname, BUILD_DIRECTORY, from);
    const toPath = join(__dirname, DEPENDENCIES_DIRECTORY, to);
    console.log(`Copying ${fromPath} => ${toPath}`);
    copyFileSync(fromPath, toPath);
  });
}

Domain

Subdomains

Frequently Asked Questions

What does initDependencies() do?
initDependencies() is a function in the react codebase, defined in fixtures/devtools/scheduling-profiler/run.js.
Where is initDependencies() defined?
initDependencies() is defined in fixtures/devtools/scheduling-profiler/run.js at line 24.

Analyze Your Own Codebase

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

Try Supermodel Free