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

Function joinSrcset

packages/vite/src/node/utils.ts:761–765  ·  view source on GitHub ↗
(ret: ImageCandidate[])

Source from the content-addressed store, hash-verified

759}
760
761function joinSrcset(ret: ImageCandidate[]) {
762 return ret
763 .map(({ url, descriptor }) => url + (descriptor ? ` ${descriptor}` : ''))
764 .join(', ')
765}
766
767/**
768 This regex represents a loose rule of an “image candidate string” and "image set options".

Callers 1

processSrcSetSyncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected