should not return a url when we have a dataUrl
This commit is contained in:
parent
e7b02406fd
commit
27d844f02c
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user