MCPcopy Index your code
hub / github.com/systemjs/systemjs / applyImportMap

Function applyImportMap

src/system-node.js:30–35  ·  view source on GitHub ↗
(loader, newMap, mapBase)

Source from the content-addressed store, hash-verified

28}
29
30export function applyImportMap(loader, newMap, mapBase) {
31 ensureValidSystemLoader(loader);
32 loader[IMPORT_MAP] = loader[IMPORT_MAP] || { imports: {}, scopes: {} };
33 resolveAndComposeImportMap(newMap, mapBase || baseUrl, loader[IMPORT_MAP]);
34 loader[IMPORT_MAP_PROMISE] = Promise.resolve();
35}
36
37export function setBaseUrl(loader, url) {
38 ensureValidSystemLoader(loader);

Callers 2

system-node.mjsFile · 0.85
system-node.jsFile · 0.85

Calls 2

ensureValidSystemLoaderFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…