getModuleById() — vite Function Reference
Architecture documentation for the getModuleById() function in mixedModuleGraph.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD b9c8cc4b_5575_ccfe_9243_d12c9ec34e91["getModuleById()"] c1a5c030_6aae_0cbb_cc67_256559724512["ModuleGraph"] b9c8cc4b_5575_ccfe_9243_d12c9ec34e91 -->|defined in| c1a5c030_6aae_0cbb_cc67_256559724512 98b45b52_fdf0_c791_ef33_cf0bce10f788["getModulesByFile()"] 98b45b52_fdf0_c791_ef33_cf0bce10f788 -->|calls| b9c8cc4b_5575_ccfe_9243_d12c9ec34e91 a4168a1b_3e71_5cc9_a18d_c7ae3a38432d["getBackwardCompatibleBrowserModuleNode()"] a4168a1b_3e71_5cc9_a18d_c7ae3a38432d -->|calls| b9c8cc4b_5575_ccfe_9243_d12c9ec34e91 6320d5f1_e9df_4579_295d_dff40d81f826["getBackwardCompatibleServerModuleNode()"] 6320d5f1_e9df_4579_295d_dff40d81f826 -->|calls| b9c8cc4b_5575_ccfe_9243_d12c9ec34e91 f6405e51_2f5f_8b61_2baa_899012d93f2a["createBackwardCompatibleModuleSet()"] f6405e51_2f5f_8b61_2baa_899012d93f2a -->|calls| b9c8cc4b_5575_ccfe_9243_d12c9ec34e91 f65dbf66_c4b6_3d7a_622d_0f65ec92d086["getBackwardCompatibleModuleNodeDual()"] b9c8cc4b_5575_ccfe_9243_d12c9ec34e91 -->|calls| f65dbf66_c4b6_3d7a_622d_0f65ec92d086 1c3423db_563a_92c5_87fa_42d035132b6c["getModuleById()"] b9c8cc4b_5575_ccfe_9243_d12c9ec34e91 -->|calls| 1c3423db_563a_92c5_87fa_42d035132b6c style b9c8cc4b_5575_ccfe_9243_d12c9ec34e91 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/vite/src/node/server/mixedModuleGraph.ts lines 317–324
getModuleById(id: string): ModuleNode | undefined {
const clientModule = this._client.getModuleById(id)
const ssrModule = this._ssr.getModuleById(id)
if (!clientModule && !ssrModule) {
return
}
return this.getBackwardCompatibleModuleNodeDual(clientModule, ssrModule)
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getModuleById() do?
getModuleById() is a function in the vite codebase, defined in packages/vite/src/node/server/mixedModuleGraph.ts.
Where is getModuleById() defined?
getModuleById() is defined in packages/vite/src/node/server/mixedModuleGraph.ts at line 317.
What does getModuleById() call?
getModuleById() calls 2 function(s): getBackwardCompatibleModuleNodeDual, getModuleById.
What calls getModuleById()?
getModuleById() is called by 4 function(s): createBackwardCompatibleModuleSet, getBackwardCompatibleBrowserModuleNode, getBackwardCompatibleServerModuleNode, getModulesByFile.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free