MCPcopy
hub / github.com/rollup/rollup / getLinkMap

Function getLinkMap

src/utils/collapseSourcemaps.ts:159–175  ·  view source on GitHub ↗
(log: LogHandler)

Source from the content-addressed store, hash-verified

157}
158
159function getLinkMap(log: LogHandler) {
160 return function linkMap(source: Source | Link, map: DecodedSourceMapOrMissing): Link {
161 if (!map.missing) {
162 return new Link(map, [source]);
163 }
164
165 log(LOGLEVEL_WARN, logSourcemapBroken(map.plugin));
166
167 return new Link(
168 {
169 mappings: [],
170 names: []
171 },
172 [source]
173 );
174 };
175}
176
177function getCollapsedSourcemap(
178 id: string,

Callers 2

collapseSourcemapsFunction · 0.85
collapseSourcemapFunction · 0.85

Calls 2

logSourcemapBrokenFunction · 0.90
logFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…