MCPcopy
hub / github.com/systemjs/systemjs / resolveAndComposeImportMap

Function resolveAndComposeImportMap

src/common.js:147–162  ·  view source on GitHub ↗
(json, baseUrl, outMap)

Source from the content-addressed store, hash-verified

145}
146
147export function resolveAndComposeImportMap (json, baseUrl, outMap) {
148 if (json.imports)
149 resolveAndComposePackages(json.imports, outMap.imports, baseUrl, outMap, null);
150
151 var u;
152 for (u in json.scopes || {}) {
153 var resolvedScope = resolveUrl(u, baseUrl);
154 resolveAndComposePackages(json.scopes[u], outMap.scopes[resolvedScope] || (outMap.scopes[resolvedScope] = {}), baseUrl, outMap, resolvedScope);
155 }
156
157 for (u in json.depcache || {})
158 outMap.depcache[resolveUrl(u, baseUrl)] = json.depcache[u];
159
160 for (u in json.integrity || {})
161 outMap.integrity[resolveUrl(u, baseUrl)] = json.integrity[u];
162}
163
164function getMatch (path, matchObj) {
165 if (matchObj[path])

Callers 4

import-map.mjsFile · 0.90
applyImportMapFunction · 0.90
import-maps.jsFile · 0.90
extendImportMapFunction · 0.90

Calls 2

resolveUrlFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…