Skip to content

Commit

Permalink
Don't override existing items in sourcesContent if any
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislav Panferov committed Jul 15, 2015
1 parent 342375d commit dc66b2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var transpile = function(source, options) {
var code = result.code;
var map = result.map;

if (map) {
if (map && (!map.sourcesContent || !map.sourcesContent.length)) {
map.sourcesContent = [source];
}

Expand Down

0 comments on commit dc66b2a

Please sign in to comment.