From a6bb66931bfdd04d6ce05b640d89a8deff7ca3de Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Sat, 13 Feb 2021 18:24:57 +0000 Subject: improve fix for #4325 (#4649) --- lib/compress.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/compress.js') diff --git a/lib/compress.js b/lib/compress.js index 38d25b15..7e113ecc 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -7003,6 +7003,8 @@ merge(Compressor.prototype, { // always shallow clone to ensure stripping of negated IIFEs self = self.clone(); self.expression = exp.clone(); + // avoid extraneous traversal + if (exp._squeezed) self.expression._squeezed = true; } if (self instanceof AST_New) { var fn = exp; -- cgit v1.2.3