From: Ingo Struck Date: Thu, 27 Aug 2015 17:38:33 +0000 (+0200) Subject: allow for anonymous map generation using string type check X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=3a5f35484606914b54fb80540f51b37fae20282b;p=UglifyJS.git allow for anonymous map generation using string type check --- diff --git a/tools/node.js b/tools/node.js index 29d5632d..eba2bc1d 100644 --- a/tools/node.js +++ b/tools/node.js @@ -131,7 +131,7 @@ exports.minify = function(files, options) { var stream = UglifyJS.OutputStream(output); toplevel.print(stream); - if(options.outSourceMap){ + if (options.outSourceMap && "string" === typeof options.outSourceMap) { stream += "\n//# sourceMappingURL=" + options.outSourceMap; }