File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -54,9 +54,10 @@ module.exports = function(input, inputMap) {
54
54
}
55
55
function processMap ( map , context , callback ) {
56
56
if ( ! map . sourcesContent || map . sourcesContent . length < map . sources . length ) {
57
+ var sourcePrefix = map . sourceRoot ? map . sourceRoot + "/" : "" ;
57
58
var missingSources = map . sourcesContent ? map . sources . slice ( map . sourcesContent . length ) : map . sources ;
58
59
async . map ( missingSources , function ( source , callback ) {
59
- resolve ( context , loaderUtils . urlToRequest ( source ) , function ( err , result ) {
60
+ resolve ( context , loaderUtils . urlToRequest ( sourcePrefix + source ) , function ( err , result ) {
60
61
if ( err ) {
61
62
emitWarning ( "Cannot find source file '" + source + "': " + err ) ;
62
63
return callback ( null , null ) ;
You can’t perform that action at this time.
0 commit comments