Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
Nathan Sobo
2015-08-20 16:07:37 -06:00
committed by Max Brunsfeld
parent dba53f3358
commit 61ef1da815

View File

@@ -113,10 +113,10 @@ require('source-map-support').install({
let sourceMappingURL = lastMatch[1]
let rawData = sourceMappingURL.slice(sourceMappingURL.indexOf(',') + 1)
let sourceMapData = new Buffer(rawData, 'base64').toString()
let sourceMap = JSON.parse(new Buffer(rawData, 'base64').toString())
return {
map: JSON.parse(sourceMapData),
map: sourceMap,
url: null
}
}