Home / Function/ _wrapModuleSet() — vite Function Reference

_wrapModuleSet() — vite Function Reference

Architecture documentation for the _wrapModuleSet() function in mixedModuleGraph.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  09c59943_148f_165b_467c_116c858a50ca["_wrapModuleSet()"]
  8168c2c0_6927_0878_8876_5fb50d36ade9["ModuleNode"]
  09c59943_148f_165b_467c_116c858a50ca -->|defined in| 8168c2c0_6927_0878_8876_5fb50d36ade9
  80226978_8948_ea91_803d_7890df3b6cab["clientImportedModules()"]
  80226978_8948_ea91_803d_7890df3b6cab -->|calls| 09c59943_148f_165b_467c_116c858a50ca
  93153213_e33a_25ba_eda9_62d2335475c8["ssrImportedModules()"]
  93153213_e33a_25ba_eda9_62d2335475c8 -->|calls| 09c59943_148f_165b_467c_116c858a50ca
  f1337016_6f8e_89be_ba23_f586d0179656["acceptedHmrDeps()"]
  f1337016_6f8e_89be_ba23_f586d0179656 -->|calls| 09c59943_148f_165b_467c_116c858a50ca
  f6405e51_2f5f_8b61_2baa_899012d93f2a["createBackwardCompatibleModuleSet()"]
  09c59943_148f_165b_467c_116c858a50ca -->|calls| f6405e51_2f5f_8b61_2baa_899012d93f2a
  style 09c59943_148f_165b_467c_116c858a50ca fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/node/server/mixedModuleGraph.ts lines 50–58

  _wrapModuleSet(
    prop: ModuleSetNames,
    module: EnvironmentModuleNode | undefined,
  ): Set<ModuleNode> {
    if (!module) {
      return new Set()
    }
    return createBackwardCompatibleModuleSet(this._moduleGraph, prop, module)
  }

Domain

Subdomains

Frequently Asked Questions

What does _wrapModuleSet() do?
_wrapModuleSet() is a function in the vite codebase, defined in packages/vite/src/node/server/mixedModuleGraph.ts.
Where is _wrapModuleSet() defined?
_wrapModuleSet() is defined in packages/vite/src/node/server/mixedModuleGraph.ts at line 50.
What does _wrapModuleSet() call?
_wrapModuleSet() calls 1 function(s): createBackwardCompatibleModuleSet.
What calls _wrapModuleSet()?
_wrapModuleSet() is called by 3 function(s): acceptedHmrDeps, clientImportedModules, ssrImportedModules.

Analyze Your Own Codebase

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

Try Supermodel Free