aboutsummaryrefslogtreecommitdiff
path: root/bin/uglifyjs
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-05-09 02:58:03 +0100
committerGitHub <noreply@github.com>2020-05-09 09:58:03 +0800
commitf74b7f74019e796c95c228dc6b0348f9db6e709f (patch)
tree59d8c1330b043f40aab0ff0c5f2ef7256055ac5f /bin/uglifyjs
parentb06fd8a9331c377dd3d95ddb78a52ea11c58f8df (diff)
downloadtracifyjs-f74b7f74019e796c95c228dc6b0348f9db6e709f.tar.gz
tracifyjs-f74b7f74019e796c95c228dc6b0348f9db6e709f.zip
implement AST validation (#3863)
Diffstat (limited to 'bin/uglifyjs')
-rwxr-xr-xbin/uglifyjs2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/uglifyjs b/bin/uglifyjs
index e5124b06..500fe6d8 100755
--- a/bin/uglifyjs
+++ b/bin/uglifyjs
@@ -68,6 +68,7 @@ program.option("--self", "Build UglifyJS as a library (implies --wrap UglifyJS)"
program.option("--source-map [options]", "Enable source map/specify source map options.", parse_js());
program.option("--timings", "Display operations run time on STDERR.");
program.option("--toplevel", "Compress and/or mangle variables in toplevel scope.");
+program.option("--validate", "Perform validation during AST manipulations.");
program.option("--verbose", "Print diagnostic messages.");
program.option("--warn", "Print warning messages.");
program.option("--wrap <name>", "Embed everything as a function with “exports” corresponding to “name” globally.");
@@ -91,6 +92,7 @@ if (!program.output && program.sourceMap && program.sourceMap.url != "inline") {
"mangle",
"sourceMap",
"toplevel",
+ "validate",
"wrap"
].forEach(function(name) {
if (name in program) {