Comparing version 5.31.3 to 5.31.4
# Changelog | ||
## v5.31.4 | ||
- drop_unused: drop classes which only have side effects in the `extends` part | ||
## v5.31.3 | ||
@@ -4,0 +7,0 @@ - drop_unused: drop unused parameters from IIFEs in some more situations. |
@@ -159,3 +159,3 @@ /*********************************************************************** | ||
if (this.is_self_referential() && this.has_side_effects(compressor)) { | ||
if (this.is_self_referential() && this.body_has_side_effects(compressor)) { | ||
return this; | ||
@@ -162,0 +162,0 @@ } |
@@ -156,3 +156,3 @@ /*********************************************************************** | ||
if (node === self) return; | ||
if (node instanceof AST_Class && node.has_side_effects(compressor)) { | ||
if (node instanceof AST_Class && node.body_has_side_effects(compressor)) { | ||
if (node.is_self_referential()) { | ||
@@ -159,0 +159,0 @@ descend(); |
@@ -7,3 +7,3 @@ { | ||
"license": "BSD-2-Clause", | ||
"version": "5.31.3", | ||
"version": "5.31.4", | ||
"engines": { | ||
@@ -10,0 +10,0 @@ "node": ">=10" |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2194166
62691