MCPcopy
hub / github.com/rollup/rollup / normalizeRelativeExternalId

Function normalizeRelativeExternalId

src/ModuleLoader.ts:811–817  ·  view source on GitHub ↗
(source: string, importer: string | undefined)

Source from the content-addressed store, hash-verified

809}
810
811function normalizeRelativeExternalId(source: string, importer: string | undefined): string {
812 return isRelative(source)
813 ? importer
814 ? resolve(importer, '..', source)
815 : resolve(source)
816 : source;
817}
818
819function addChunkNamesToModule(
820 module: Module,

Calls 2

isRelativeFunction · 0.90
resolveFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…