[Pkg-javascript-commits] [uglifyjs] 03/190: Support wrap and exportAll options.

Antonio Terceiro terceiro at moszumanska.debian.org
Sun Aug 7 23:17:06 UTC 2016


This is an automated email from the git hooks/post-receive script.

terceiro pushed a commit to annotated tag upstream/2.7.0
in repository uglifyjs.

commit 8108c7ffafac2eff8b9d9d263f6f6b89ed13c003
Author: Kosei Kitahara <surgo.jp at gmail.com>
Date:   Tue Jul 28 21:36:22 2015 +0900

    Support wrap and exportAll options.
---
 tools/node.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tools/node.js b/tools/node.js
index cbe49e3..7bba323 100644
--- a/tools/node.js
+++ b/tools/node.js
@@ -84,6 +84,9 @@ exports.minify = function(files, options) {
             });
         });
     }
+    if (options.wrap) {
+      toplevel = toplevel.wrap_commonjs(options.wrap, options.exportAll);
+    }
 
     // 2. compress
     if (options.compress) {

-- 
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