should not return a url when we have a dataUrl

This commit is contained in:
ashaffer 2013-12-11 12:30:20 -08:00
parent e7b02406fd
commit 27d844f02c

View File

@ -69,6 +69,7 @@ var retrieveSourceMap = function (source) {
if (sourceMappingURL.slice(0, dataUrlPrefix.length).toLowerCase() == dataUrlPrefix) { if (sourceMappingURL.slice(0, dataUrlPrefix.length).toLowerCase() == dataUrlPrefix) {
// Support source map URL as a data url // Support source map URL as a data url
sourceMapData = new Buffer(sourceMappingURL.slice(dataUrlPrefix.length), "base64").toString(); sourceMapData = new Buffer(sourceMappingURL.slice(dataUrlPrefix.length), "base64").toString();
sourceMappingURL = null;
} else { } else {
// Support source map URLs relative to the source URL // Support source map URLs relative to the source URL
var dir = path.dirname(source); var dir = path.dirname(source);