getDependencyInformation() — vite Function Reference
Architecture documentation for the getDependencyInformation() function in rollupLicensePlugin.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 98fcdafd_b9c2_b494_7b17_6cf19b372f35["getDependencyInformation()"] 8c8944ff_c444_0ebb_8419_eb691db97f08["rollupLicensePlugin.ts"] 98fcdafd_b9c2_b494_7b17_6cf19b372f35 -->|defined in| 8c8944ff_c444_0ebb_8419_eb691db97f08 74b9093c_e915_858a_5cf5_38f75501fe67["licensePlugin()"] 74b9093c_e915_858a_5cf5_38f75501fe67 -->|calls| 98fcdafd_b9c2_b494_7b17_6cf19b372f35 70b428e0_ea83_5f27_8d43_7bf824f11e88["normalizeGitUrl()"] 98fcdafd_b9c2_b494_7b17_6cf19b372f35 -->|calls| 70b428e0_ea83_5f27_8d43_7bf824f11e88 style 98fcdafd_b9c2_b494_7b17_6cf19b372f35 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/vite/rollupLicensePlugin.ts lines 156–182
function getDependencyInformation(dep: Dependency): DependencyInfo {
const info: DependencyInfo = {}
const { license, author, maintainers, contributors, repository } = dep
if (license) {
info.license = license
}
const names = new Set<string>()
for (const person of [author, ...maintainers, ...contributors]) {
const name = typeof person === 'string' ? person : person?.name
if (name) {
names.add(name)
}
}
if (names.size > 0) {
info.names = Array.from(names).join(', ')
}
if (repository) {
info.repository = normalizeGitUrl(
typeof repository === 'string' ? repository : repository.url,
)
}
return info
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does getDependencyInformation() do?
getDependencyInformation() is a function in the vite codebase, defined in packages/vite/rollupLicensePlugin.ts.
Where is getDependencyInformation() defined?
getDependencyInformation() is defined in packages/vite/rollupLicensePlugin.ts at line 156.
What does getDependencyInformation() call?
getDependencyInformation() calls 1 function(s): normalizeGitUrl.
What calls getDependencyInformation()?
getDependencyInformation() is called by 1 function(s): licensePlugin.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free