Skip to content

Commit

Permalink
Include source url for inline maps
Browse files Browse the repository at this point in the history
This fixes relative url mapping for inline source maps.
  • Loading branch information
kpdecker committed Oct 9, 2016
1 parent 2369eea commit ca00389
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source-map-support.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ retrieveMapHandlers.push(function(source) {
// Support source map URL as a data url
var rawData = sourceMappingURL.slice(sourceMappingURL.indexOf(',') + 1);
sourceMapData = new Buffer(rawData, "base64").toString();
sourceMappingURL = null;
sourceMappingURL = source;
} else {
// Support source map URLs relative to the source URL
sourceMappingURL = supportRelativeURL(source, sourceMappingURL);
Expand Down

0 comments on commit ca00389

Please sign in to comment.