main
Last change
on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
330 bytes
|
Rev | Line | |
---|
[79a0317] | 1 | var path = require('path');
|
---|
| 2 | var url = require('url');
|
---|
| 3 |
|
---|
| 4 | function rebaseRemoteMap(sourceMap, sourceUri) {
|
---|
| 5 | var sourceDirectory = path.dirname(sourceUri);
|
---|
| 6 |
|
---|
| 7 | sourceMap.sources = sourceMap.sources.map(function(source) {
|
---|
| 8 | return url.resolve(sourceDirectory, source);
|
---|
| 9 | });
|
---|
| 10 |
|
---|
| 11 | return sourceMap;
|
---|
| 12 | }
|
---|
| 13 |
|
---|
| 14 | module.exports = rebaseRemoteMap;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.