Skip to content

Commit 214a97a

Browse files
committed
fixed tests
1 parent e249255 commit 214a97a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ module.exports = function(input, inputMap) {
5656
if(!map.sourcesContent || map.sourcesContent.length < map.sources.length) {
5757
var sourcePrefix = map.sourceRoot ? map.sourceRoot + "/" : "";
5858
map.sources = map.sources.map(function(s) { return sourcePrefix + s; });
59-
map.sourceRoot = undefined;
59+
delete map.sourceRoot;
6060
var missingSources = map.sourcesContent ? map.sources.slice(map.sourcesContent.length) : map.sources;
6161
async.map(missingSources, function(source, callback) {
6262
resolve(context, loaderUtils.urlToRequest(source), function(err, result) {

0 commit comments

Comments
 (0)