provide diagnostic details on --mangle-props (#5621)

closes #5618
This commit is contained in:
Alex Lam S.L
2022-08-17 15:22:30 +01:00
committed by GitHub
parent d6d2f5ced2
commit 9eea3a673a
3 changed files with 17 additions and 1 deletions

View File

@@ -459,6 +459,7 @@ function to_toplevel(input, mangle_options, expression) {
var tokens = [];
input.walk(new U.TreeWalker(function(node) {
if (U.push_uniq(tokens, node.start)) node.start.line -= offset;
if (U.push_uniq(tokens, node.end)) node.end.line -= offset;
}));
var toplevel;
if (!expression) {