diff options
author | Mihai Bazon <mihai.bazon@gmail.com> | 2015-04-05 13:19:46 +0300 |
---|---|---|
committer | Mihai Bazon <mihai.bazon@gmail.com> | 2015-04-05 13:20:22 +0300 |
commit | 5d60484553895a0eac1ac764d1fa7fc683c8499d (patch) | |
tree | 26eaf60a4baf4b5c67f2a59397777768bc9c989c | |
parent | 3c846e6f7bdc1e0de536ada9b4f221a6223775e4 (diff) | |
download | tracifyjs-5d60484553895a0eac1ac764d1fa7fc683c8499d.tar.gz tracifyjs-5d60484553895a0eac1ac764d1fa7fc683c8499d.zip |
More fixes for the breaking changes in yargs
Close #670
-rwxr-xr-x | bin/uglifyjs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/uglifyjs b/bin/uglifyjs index 9b335b74..df7b7832 100755 --- a/bin/uglifyjs +++ b/bin/uglifyjs @@ -215,7 +215,7 @@ if (ARGS.keep_fnames) { if (BEAUTIFY) UglifyJS.merge(OUTPUT_OPTIONS, BEAUTIFY); -if (ARGS.comments) { +if (ARGS.comments != null) { if (/^\/.*\/[a-zA-Z]*$/.test(ARGS.comments)) { var regex_pos = ARGS.comments.lastIndexOf("/"); try { @@ -357,11 +357,11 @@ async.eachLimit(files, 1, function (file, cb) { TOPLEVEL = UglifyJS.AST_Node.from_mozilla_ast(TOPLEVEL); }); - if (ARGS.wrap) { + if (ARGS.wrap != null) { TOPLEVEL = TOPLEVEL.wrap_commonjs(ARGS.wrap, ARGS.export_all); } - if (ARGS.enclose) { + if (ARGS.enclose != null) { var arg_parameter_list = ARGS.enclose; if (arg_parameter_list === true) { arg_parameter_list = []; |