MCPcopy
hub / github.com/vitejs/vite / sortDependencies

Function sortDependencies

packages/vite/rollupLicensePlugin.ts:130–134  ·  view source on GitHub ↗
(dependencies: Dependency[])

Source from the content-addressed store, hash-verified

128}
129
130function sortDependencies(dependencies: Dependency[]) {
131 return dependencies.sort(({ name: nameA }, { name: nameB }) => {
132 return nameA! > nameB! ? 1 : nameB! > nameA! ? -1 : 0
133 })
134}
135
136function sortLicenses(licenses: Set<string>) {
137 let withParenthesis: string[] = []

Callers 1

thirdPartyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected