Skip to content

Commit 219a054

Browse files
authored
Fix bug
1 parent 8541005 commit 219a054

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

lib/loader.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,13 @@ module.exports = function(content, map) {
115115
map = result.map;
116116
if(map.sources) {
117117
map.sources = map.sources.map(function(source) {
118-
const output = source.split("!").pop().replace(/\\/g, '/');
119-
if(!query.sourceMapSourcesMapping) return output
120-
return query.sourceMapSourcesMapping(output)
118+
return (query.sourceMapSourcesDomain || '') +
119+
source.split("!")
120+
.pop()
121+
.replace(/\\/g, '/')
122+
.replace(/(\w):\//, function(_, id) {
123+
return id.toUpperCase() + ':\/';
124+
});
121125
}, this);
122126
map.sourceRoot = "";
123127
}

0 commit comments

Comments
 (0)