From 6fe53f88de8d81f189540504b25b5a59efbac94c Mon Sep 17 00:00:00 2001 From: guybedford Date: Thu, 16 Mar 2017 13:43:09 +0200 Subject: [PATCH 1/3] lock uglifyjs to 2.7 branch --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 15aad0e..0a6beb7 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "source-map": "^0.5.3", "systemjs": "^0.19.43", "traceur": "0.0.105", - "uglify-js": "^2.6.1" + "uglify-js": "~2.7.5" }, "devDependencies": { "babel": "^5.8.38", From 42ddff4b7e63842a500bac47f5b133024685c166 Mon Sep 17 00:00:00 2001 From: guybedford Date: Thu, 16 Mar 2017 13:43:22 +0200 Subject: [PATCH 2/3] 0.15.36 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0a6beb7..aeac39d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "systemjs-builder", - "version": "0.15.35", + "version": "0.15.36", "description": "SystemJS Build Tool", "main": "index.js", "dependencies": { From abd7c599638ce570de4697c980504afdba4114ff Mon Sep 17 00:00:00 2001 From: Rahul Gupta Date: Sun, 16 Jul 2017 01:01:30 +0530 Subject: [PATCH 3/3] Add uglify.output Option in Build `uglify` option in `build` now accepts `uglify.output` consistent with the Uglify2 API. This change does NOT change existing behaviour as the inconsistent `uglify.beautify` option is still valid. Internally `uglify.output` is copied into `uglify.beautify`, when the latter is not specified. If `uglify.beautify` is specified, then `uglify.output` is ignored. --- lib/builder.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/builder.js b/lib/builder.js index 5212710..ec32367 100644 --- a/lib/builder.js +++ b/lib/builder.js @@ -595,8 +595,9 @@ function processOutputOpts(options, defaults) { extend(opts, options); opts.uglify = opts.uglify || {}; + opts.uglify.output = opts.uglify.output || {}; opts.uglify.compress = opts.uglify.compress || {}; - opts.uglify.beautify = opts.uglify.beautify || {}; + opts.uglify.beautify = opts.uglify.beautify || opts.uglify.output; // NB deprecated these for uglify directly if (opts.globalDefs && !('global_defs' in opts.uglify.compress))