terser 5.12.1 → 5.14.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 +18 -0
- package/dist/bundle.min.js +5125 -3384
- package/lib/ast.js +1676 -350
- package/lib/compress/common.js +48 -0
- package/lib/compress/evaluate.js +4 -3
- package/lib/compress/index.js +23 -546
- package/lib/compress/inline.js +641 -0
- package/lib/compress/tighten-body.js +1 -1
- package/lib/equivalent-to.js +81 -107
- package/lib/minify.js +47 -14
- package/lib/mozilla-ast.js +474 -81
- package/lib/output.js +17 -0
- package/lib/parse.js +58 -56
- package/lib/propmangle.js +1 -1
- package/lib/size.js +6 -8
- package/lib/sourcemap.js +60 -26
- package/package.json +5 -3
- package/tools/domprops.js +12 -0
- package/tools/terser.d.ts +5 -3
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,23 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## v5.14.0
|
4
|
+
- Switched to @jridgewell/source-map for sourcemap generation (#1190, #1181)
|
5
|
+
- Fixed source maps with non-terminated segments (#1106)
|
6
|
+
- Enabled typescript types to be imported from the package (#1194)
|
7
|
+
- Extra DOM props have been added (#1191)
|
8
|
+
- Delete the AST while generating code, as a means to save RAM
|
9
|
+
|
10
|
+
## v5.13.1
|
11
|
+
- Removed self-assignments (`varname=varname`) (closes #1081)
|
12
|
+
- Separated inlining code (for inlining things into references, or removing IIFEs)
|
13
|
+
- Allow multiple identifiers with the same name in `var` destructuring (eg `var { a, a } = x`) (#1176)
|
14
|
+
|
15
|
+
## v5.13.0
|
16
|
+
|
17
|
+
- All calls to eval() were removed (#1171, #1184)
|
18
|
+
- `source-map` was updated to 0.8.0-beta.0 (#1164)
|
19
|
+
- NavigatorUAData was added to domprops to avoid property mangling (#1166)
|
20
|
+
|
3
21
|
## v5.12.1
|
4
22
|
|
5
23
|
- Fixed an issue with function definitions inside blocks (#1155)
|