From: Mihai Bazon Date: Mon, 8 Oct 2012 18:22:20 +0000 (+0300) Subject: fix `inSourceMap` in `minify` (should read the file) X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=c967f0b0fefd7db03922769f1d2aaf2ae1394ddc;p=UglifyJS.git fix `inSourceMap` in `minify` (should read the file) --- diff --git a/tools/node.js b/tools/node.js index e5046e21..bf47abad 100644 --- a/tools/node.js +++ b/tools/node.js @@ -94,7 +94,7 @@ exports.minify = function(files, options) { var map = null; if (options.outSourceMap) map = UglifyJS.SourceMap({ file: options.outSourceMap, - orig: options.inSourceMap + orig: fs.readFileSync(options.inSourceMap, "utf8") }); var stream = UglifyJS.OutputStream({ source_map: map }); toplevel.print(stream);