terser
Advanced tools
Comparing version 5.25.0 to 5.26.0
# Changelog | ||
## v5.26.0 | ||
- Do not take the `/*#__PURE__*/` annotation into account when the `side_effects` compress option is off. | ||
- The `preserve_annotations` option now automatically opts annotation comments in, instead of requiring the `comments` option to be configured for this. | ||
- Refuse to parse empty parenthesized expressions (`()`) | ||
## v5.25.0 | ||
@@ -4,0 +9,0 @@ - Regex properties added to reserved property mangler (#1471) |
@@ -834,3 +834,6 @@ /*********************************************************************** | ||
} | ||
return !!has_annotation(this, _PURE) || !compressor.pure_funcs(this); | ||
if (compressor.option("side_effects") && has_annotation(this, _PURE)) { | ||
return true; | ||
} | ||
return !compressor.pure_funcs(this); | ||
}); | ||
@@ -837,0 +840,0 @@ |
@@ -7,3 +7,3 @@ { | ||
"license": "BSD-2-Clause", | ||
"version": "5.25.0", | ||
"version": "5.26.0", | ||
"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
Sorry, the diff of this file is too big to display
2122155
60344