[Pkg-javascript-commits] [uglifyjs] 12/49: Fixed sourceMapIncludeSources and inSourceMap = string combination of the UglifyJS.minify function.
Jonas Smedegaard
dr at jones.dk
Fri Dec 9 11:43:25 UTC 2016
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository uglifyjs.
commit 307b88d6ccecf3de4150450ac651594db1b8ba56
Author: Lucas Wiener <lucas at wiener.se>
Date: Tue Jul 26 09:54:02 2016 +0200
Fixed sourceMapIncludeSources and inSourceMap = string combination of the UglifyJS.minify function.
---
tools/node.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/node.js b/tools/node.js
index 20ecb47..179c69d 100644
--- a/tools/node.js
+++ b/tools/node.js
@@ -114,7 +114,7 @@ exports.minify = function(files, options) {
var inMap = options.inSourceMap;
var output = {};
if (typeof options.inSourceMap == "string") {
- inMap = fs.readFileSync(options.inSourceMap, "utf8");
+ inMap = JSON.parse(fs.readFileSync(options.inSourceMap, "utf8"));
}
if (options.outSourceMap) {
output.source_map = UglifyJS.SourceMap({
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git
More information about the Pkg-javascript-commits
mailing list