MCPcopy Create free account
hub / github.com/microsoft/SandDance / resolvePath

Function resolvePath

docs/app/js/sanddance-app.js:53931–53938  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

53929 Object.assign(fileAliases, aliases);
53930}
53931function resolvePath(filename) {
53932 for(var alias in fileAliases)if (filename.startsWith(alias)) {
53933 var replacement = fileAliases[alias];
53934 filename = filename.replace(alias, replacement);
53935 }
53936 if (!filename.startsWith("http://") && !filename.startsWith("https://")) filename = "".concat(pathPrefix).concat(filename);
53937 return filename;
53938}
53939
53940},{"@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"6tYX7":[function(require,module,exports) {
53941var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers

nothing calls this directly

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected