improve usability (#5758)

This commit is contained in:
Alex Lam S.L
2022-12-04 03:10:32 +02:00
committed by GitHub
parent 0cbd5ea64a
commit 17c3ae6cba
18 changed files with 38 additions and 76 deletions

View File

@@ -272,7 +272,6 @@ if (typeof options.sourceMap == "object" && "base" in options.sourceMap) {
if (specified["self"]) {
if (paths.length) UglifyJS.AST_Node.warn("Ignoring input files since --self was passed");
if (!options.wrap) options.wrap = "UglifyJS";
if (!("toplevel" in options)) options.toplevel = false;
paths = UglifyJS.FILES;
} else if (paths.length) {
paths = simple_glob(paths);