terser 5.16.0 → 5.16.1
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 +8 -0
- package/dist/bundle.min.js +3098 -3044
- package/lib/ast.js +3 -2
- package/lib/compress/drop-unused.js +482 -0
- package/lib/compress/evaluate.js +7 -0
- package/lib/compress/index.js +5 -392
- package/lib/compress/inference.js +1 -2
- package/lib/compress/inline.js +1 -19
- package/lib/compress/tighten-body.js +29 -28
- package/lib/parse.js +2 -1
- package/lib/scope.js +30 -8
- package/lib/size.js +6 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,14 @@
|
|
2
2
|
|
3
3
|
## v5.16.1
|
4
4
|
|
5
|
+
- Properly handle references in destructurings (`const { [reference]: val } = ...`)
|
6
|
+
- Allow parsing of `.#privatefield` in nested classes
|
7
|
+
- Do not evaluate operations that return large strings if that would make the output code larger
|
8
|
+
- Make `collapse_vars` handle block scope correctly
|
9
|
+
- Internal improvements: Typos (#1311), more tests, small-scale refactoring
|
10
|
+
|
11
|
+
## v5.16.0
|
12
|
+
|
5
13
|
- Disallow private fields in object bodies (#1011)
|
6
14
|
- Parse `#privatefield in object` (#1279)
|
7
15
|
- Compress `#privatefield in object`
|