Home / Function/ moduleListContains() — vite Function Reference

moduleListContains() — vite Function Reference

Architecture documentation for the moduleListContains() function in utils.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  26e0aa25_abdb_a755_dedb_61e78323162d["moduleListContains()"]
  031bc221_67a8_c579_f2bf_bb30a08beeb2["utils.ts"]
  26e0aa25_abdb_a755_dedb_61e78323162d -->|defined in| 031bc221_67a8_c579_f2bf_bb30a08beeb2
  9d9d1d96_da01_acb8_5086_7a043722cf91["rolldownDepPlugin()"]
  9d9d1d96_da01_acb8_5086_7a043722cf91 -->|calls| 26e0aa25_abdb_a755_dedb_61e78323162d
  01ea698c_723c_af06_e469_c7d7c469b6bb["rolldownScanPlugin()"]
  01ea698c_723c_af06_e469_c7d7c469b6bb -->|calls| 26e0aa25_abdb_a755_dedb_61e78323162d
  a1fc1de5_905b_efe7_d960_3597604fbdfe["importAnalysisPlugin()"]
  a1fc1de5_905b_efe7_d960_3597604fbdfe -->|calls| 26e0aa25_abdb_a755_dedb_61e78323162d
  200356af_4305_31b8_b090_47f38784e182["preAliasPlugin()"]
  200356af_4305_31b8_b090_47f38784e182 -->|calls| 26e0aa25_abdb_a755_dedb_61e78323162d
  1a3bec7b_1a11_316f_5831_a0535b829bbf["withTrailingSlash()"]
  26e0aa25_abdb_a755_dedb_61e78323162d -->|calls| 1a3bec7b_1a11_316f_5831_a0535b829bbf
  style 26e0aa25_abdb_a755_dedb_61e78323162d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/node/utils.ts lines 140–147

export function moduleListContains(
  moduleList: string[] | undefined,
  id: string,
): boolean | undefined {
  return moduleList?.some(
    (m) => m === id || id.startsWith(withTrailingSlash(m)),
  )
}

Domain

Subdomains

Frequently Asked Questions

What does moduleListContains() do?
moduleListContains() is a function in the vite codebase, defined in packages/vite/src/node/utils.ts.
Where is moduleListContains() defined?
moduleListContains() is defined in packages/vite/src/node/utils.ts at line 140.
What does moduleListContains() call?
moduleListContains() calls 1 function(s): withTrailingSlash.
What calls moduleListContains()?
moduleListContains() is called by 4 function(s): importAnalysisPlugin, preAliasPlugin, rolldownDepPlugin, rolldownScanPlugin.

Analyze Your Own Codebase

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

Try Supermodel Free