From 6fcabbde08cdac7890fedcc29b0342208998a871 Mon Sep 17 00:00:00 2001 From: ebednarz Date: Sun, 13 Apr 2014 11:16:10 +0200 Subject: [PATCH] Fix sourceMapIncludeSources exception in Node API https://github.com/mishoo/UglifyJS2/issues/459 --- tools/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/node.js b/tools/node.js index bef296ea..04e67e78 100644 --- a/tools/node.js +++ b/tools/node.js @@ -115,7 +115,7 @@ exports.minify = function(files, options) { if (options.sourceMapIncludeSources) { for (var file in sourcesContent) { if (sourcesContent.hasOwnProperty(file)) { - options.source_map.get().setSourceContent(file, sourcesContent[file]); + output.source_map.get().setSourceContent(file, sourcesContent[file]); } } } -- 2.34.1