terser 5.41.0 → 5.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/README.md +1 -1
- package/dist/bundle.min.js +437 -239
- package/lib/ast.js +27 -8
- package/lib/compress/index.js +4 -6
- package/lib/compress/inline.js +15 -0
- package/lib/equivalent-to.js +2 -2
- package/lib/mozilla-ast.js +351 -200
- package/lib/output.js +7 -7
- package/lib/parse.js +30 -15
- package/lib/size.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## v5.43.0
|
4
|
+
|
5
|
+
- Do not wrap callbacks in parentheses (`wrap_func_args` format option is now false by default)
|
6
|
+
- Do not inline functions into for loops (for performance reasons)
|
7
|
+
|
8
|
+
## v5.42.0
|
9
|
+
|
10
|
+
- Improved performance in the parse step by adding a fast path for simple identifiers.
|
11
|
+
- Improved ESTree conversion
|
12
|
+
|
3
13
|
## v5.41.0
|
4
14
|
|
5
15
|
- fixed semicolon insertion between class fields, when the field names are number literals
|
package/README.md
CHANGED
@@ -1070,7 +1070,7 @@ as "output options".
|
|
1070
1070
|
function expressions. See
|
1071
1071
|
[#640](https://github.com/mishoo/UglifyJS2/issues/640) for more details.
|
1072
1072
|
|
1073
|
-
- `wrap_func_args` (default `
|
1073
|
+
- `wrap_func_args` (default `false`) -- pass `true` in order to wrap
|
1074
1074
|
function expressions that are passed as arguments, in parenthesis. See
|
1075
1075
|
[OptimizeJS](https://github.com/nolanlawson/optimize-js) for more details.
|
1076
1076
|
|