From e39b3ad46cea2fd7074a583760057bdc978e2f9e Mon Sep 17 00:00:00 2001 From: Manuel Bouza Date: Wed, 5 Nov 2014 07:56:28 +0100 Subject: [PATCH] Fix #576 Set correct filename option for UglifyJS.parse when parsing fromString --- tools/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/node.js b/tools/node.js index 084998da..fbc7a795 100644 --- a/tools/node.js +++ b/tools/node.js @@ -78,7 +78,7 @@ exports.minify = function(files, options) { : fs.readFileSync(file, "utf8"); sourcesContent[file] = code; toplevel = UglifyJS.parse(code, { - filename: options.fromString ? "?" : file, + filename: options.fromString ? options.outSourceMap : file, toplevel: toplevel }); });