From 3a5f35484606914b54fb80540f51b37fae20282b Mon Sep 17 00:00:00 2001 From: Ingo Struck Date: Thu, 27 Aug 2015 19:38:33 +0200 Subject: [PATCH] allow for anonymous map generation using string type check --- tools/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.34.1