Home / Function/ _updateModuleInfo() — vite Function Reference

_updateModuleInfo() — vite Function Reference

Architecture documentation for the _updateModuleInfo() function in pluginContainer.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  d1db0d45_eb52_3b21_c1e3_ccd6295c19cb["_updateModuleInfo()"]
  c261dae5_9c68_4b7d_8b09_fe13190425fe["PluginContext"]
  d1db0d45_eb52_3b21_c1e3_ccd6295c19cb -->|defined in| c261dae5_9c68_4b7d_8b09_fe13190425fe
  bff62ce1_58a6_b7b5_ef28_a3e2a2bc0779["load()"]
  bff62ce1_58a6_b7b5_ef28_a3e2a2bc0779 -->|calls| d1db0d45_eb52_3b21_c1e3_ccd6295c19cb
  dcf6f9d5_316b_0287_6984_8729d3e6c0aa["transform()"]
  dcf6f9d5_316b_0287_6984_8729d3e6c0aa -->|calls| d1db0d45_eb52_3b21_c1e3_ccd6295c19cb
  94464637_e13d_00af_69ed_f92d6e6cc584["load()"]
  94464637_e13d_00af_69ed_f92d6e6cc584 -->|calls| d1db0d45_eb52_3b21_c1e3_ccd6295c19cb
  4b121a62_0595_c8a4_a564_94500f5fbaf5["getModuleInfo()"]
  d1db0d45_eb52_3b21_c1e3_ccd6295c19cb -->|calls| 4b121a62_0595_c8a4_a564_94500f5fbaf5
  0c657f10_5f2a_d708_4034_b4fc6ee0c7fa["getModuleInfo()"]
  d1db0d45_eb52_3b21_c1e3_ccd6295c19cb -->|calls| 0c657f10_5f2a_d708_4034_b4fc6ee0c7fa
  style d1db0d45_eb52_3b21_c1e3_ccd6295c19cb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/node/server/pluginContainer.ts lines 846–853

  _updateModuleInfo(id: string, { meta }: { meta?: object | null }): void {
    if (meta) {
      const moduleInfo = this.getModuleInfo(id)
      if (moduleInfo) {
        moduleInfo.meta = { ...moduleInfo.meta, ...meta }
      }
    }
  }

Domain

Subdomains

Frequently Asked Questions

What does _updateModuleInfo() do?
_updateModuleInfo() is a function in the vite codebase, defined in packages/vite/src/node/server/pluginContainer.ts.
Where is _updateModuleInfo() defined?
_updateModuleInfo() is defined in packages/vite/src/node/server/pluginContainer.ts at line 846.
What does _updateModuleInfo() call?
_updateModuleInfo() calls 2 function(s): getModuleInfo, getModuleInfo.
What calls _updateModuleInfo()?
_updateModuleInfo() is called by 3 function(s): load, load, transform.

Analyze Your Own Codebase

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

Try Supermodel Free