Fix sourceMapIncludeSources exception in Node API
https://github.com/mishoo/UglifyJS2/issues/459
This commit is contained in:
@@ -115,7 +115,7 @@ exports.minify = function(files, options) {
|
|||||||
if (options.sourceMapIncludeSources) {
|
if (options.sourceMapIncludeSources) {
|
||||||
for (var file in sourcesContent) {
|
for (var file in sourcesContent) {
|
||||||
if (sourcesContent.hasOwnProperty(file)) {
|
if (sourcesContent.hasOwnProperty(file)) {
|
||||||
options.source_map.get().setSourceContent(file, sourcesContent[file]);
|
output.source_map.get().setSourceContent(file, sourcesContent[file]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user