Home / Function/ default.run() — react Function Reference

default.run() — react Function Reference

Architecture documentation for the default.run() function in libraryCompat.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  4b7267b8_684d_dae1_b3c8_578dbc43f801["default.run()"]
  59baec20_252f_875a_e0a2_9e420cfb5db8["libraryCompat.ts"]
  4b7267b8_684d_dae1_b3c8_578dbc43f801 -->|defined in| 59baec20_252f_875a_e0a2_9e420cfb5db8
  style 4b7267b8_684d_dae1_b3c8_578dbc43f801 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/react-compiler-healthcheck/src/checks/libraryCompat.ts lines 15–27

  run(source: string, path: string): void {
    if (packageJsonRE.exec(path) !== null) {
      const contents = JSON.parse(source);
      const deps = contents.dependencies;
      if (deps != null) {
        for (const library of config.knownIncompatibleLibraries) {
          if (Object.hasOwn(deps, library)) {
            knownIncompatibleLibrariesUsage.add(library);
          }
        }
      }
    }
  },

Domain

Subdomains

Frequently Asked Questions

What does default.run() do?
default.run() is a function in the react codebase, defined in compiler/packages/react-compiler-healthcheck/src/checks/libraryCompat.ts.
Where is default.run() defined?
default.run() is defined in compiler/packages/react-compiler-healthcheck/src/checks/libraryCompat.ts at line 15.

Analyze Your Own Codebase

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

Try Supermodel Free