GT2/Ejectable/node_modules/source-map-resolve/lib/resolve-url.js

10 lines
219 B
JavaScript
Raw Normal View History

2021-08-16 00:14:59 +00:00
var url = require("url")
function resolveUrl(/* ...urls */) {
return Array.prototype.reduce.call(arguments, function(resolved, nextUrl) {
return url.resolve(resolved, nextUrl)
})
}
module.exports = resolveUrl