You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
330 B
15 lines
330 B
2 years ago
|
var path = require('path');
|
||
|
var url = require('url');
|
||
|
|
||
|
function rebaseRemoteMap(sourceMap, sourceUri) {
|
||
|
var sourceDirectory = path.dirname(sourceUri);
|
||
|
|
||
|
sourceMap.sources = sourceMap.sources.map(function(source) {
|
||
|
return url.resolve(sourceDirectory, source);
|
||
|
});
|
||
|
|
||
|
return sourceMap;
|
||
|
}
|
||
|
|
||
|
module.exports = rebaseRemoteMap;
|