MCPcopy
hub / github.com/systemjs/systemjs / extendImportMap

Function extendImportMap

src/features/import-maps.js:79–87  ·  view source on GitHub ↗
(importMap, newMapText, newMapUrl)

Source from the content-addressed store, hash-verified

77}
78
79function extendImportMap (importMap, newMapText, newMapUrl) {
80 var newMap = {};
81 try {
82 newMap = JSON.parse(newMapText);
83 } catch (err) {
84 console.warn(Error((process.env.SYSTEM_PRODUCTION ? errMsg('W5') : errMsg('W5', "systemjs-importmap contains invalid JSON") + '\n\n' + newMapText + '\n' )));
85 }
86 resolveAndComposeImportMap(newMap, newMapUrl, importMap);
87}

Callers 1

processScriptsFunction · 0.85

Calls 2

errMsgFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…