Home / Function/ parseBundledDependenciesFromLicense() — vite Function Reference

parseBundledDependenciesFromLicense() — vite Function Reference

Architecture documentation for the parseBundledDependenciesFromLicense() function in acknowledgements.data.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  458fc751_3f15_a292_18f6_a3629ce7fe5d["parseBundledDependenciesFromLicense()"]
  217bc23a_2c54_8ca5_016d_7cb941ca23b7["acknowledgements.data.ts"]
  458fc751_3f15_a292_18f6_a3629ce7fe5d -->|defined in| 217bc23a_2c54_8ca5_016d_7cb941ca23b7
  a724534b_0754_d646_5276_8ce434497095["loadData()"]
  a724534b_0754_d646_5276_8ce434497095 -->|calls| 458fc751_3f15_a292_18f6_a3629ce7fe5d
  style 458fc751_3f15_a292_18f6_a3629ce7fe5d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

docs/_data/acknowledgements.data.ts lines 113–126

function parseBundledDependenciesFromLicense(licensePath: string): string[] {
  const content = fs.readFileSync(licensePath, 'utf-8')

  // Find the "# Bundled dependencies:" section and parse package names from ## headers
  const bundledSection = content.split('# Bundled dependencies:\n')[1]
  if (!bundledSection) return []

  // Match all ## headers which contain package names (comma-separated for grouped packages)
  const deps = [...bundledSection.matchAll(/^## (.+)$/gm)].flatMap((m) =>
    // Package names can be comma-separated (e.g., "## pkg1, pkg2, pkg3")
    m[1].split(',').map((n) => n.trim()),
  )
  return [...new Set(deps)]
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does parseBundledDependenciesFromLicense() do?
parseBundledDependenciesFromLicense() is a function in the vite codebase, defined in docs/_data/acknowledgements.data.ts.
Where is parseBundledDependenciesFromLicense() defined?
parseBundledDependenciesFromLicense() is defined in docs/_data/acknowledgements.data.ts at line 113.
What calls parseBundledDependenciesFromLicense()?
parseBundledDependenciesFromLicense() is called by 1 function(s): loadData.

Analyze Your Own Codebase

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

Try Supermodel Free