improve usability of --mangle-props (#5669)

This commit is contained in:
Alex Lam S.L
2022-09-18 02:37:06 +01:00
committed by GitHub
parent eb22f0101e
commit 5ac6ec5496
8 changed files with 93 additions and 9 deletions

View File

@@ -205,6 +205,7 @@ function minify(files, options) {
toplevel.mangle_names(options.mangle);
}
if (timings) timings.properties = Date.now();
if (quoted_props) reserve_quoted_keys(toplevel, quoted_props);
if (options.mangle && options.mangle.properties) mangle_properties(toplevel, options.mangle.properties);
if (options.parse.expression) toplevel = toplevel.unwrap_expression();
if (timings) timings.output = Date.now();