terser 4.6.0 → 4.6.4
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.
Potentially problematic release.
This version of terser might be problematic. Click here for more details.
- package/CHANGELOG.md +24 -0
- package/README.md +2 -0
- package/dist/bundle.min.js +1 -1
- package/dist/bundle.min.js.map +1 -1
- package/package.json +1 -1
- package/tools/terser.d.ts +10 -2
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,29 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## v4.6.4
|
4
|
+
|
5
|
+
- The `"some"` value in the `comments` output option now preserves `@lic` and other important comments when using `//`
|
6
|
+
- `</script>` is now better escaped in regex, and in comments, when using the `inline_script` output option
|
7
|
+
- Fixed an issue when transforming `new RegExp` into `/.../` when slashes are included in the source
|
8
|
+
- `AST_Node.prototype.constructor` now exists, allowing for easier debugging of crashes
|
9
|
+
- Multiple if statements with the same consequents are now collapsed
|
10
|
+
- Typescript typings improvements
|
11
|
+
- Optimizations while looking for surrogate pairs in strings
|
12
|
+
|
13
|
+
## v4.6.3
|
14
|
+
|
15
|
+
- Annotations such as `/*#__NOINLINE__*/` and `/*#__PURE__*/` may now be preserved using the `preserve_annotations` output option
|
16
|
+
- A TypeScript definition update for the `keep_quoted` output option.
|
17
|
+
|
18
|
+
## v4.6.2
|
19
|
+
|
20
|
+
- A bug where functions were inlined into other functions with scope conflicts has been fixed.
|
21
|
+
- `/*#__NOINLINE__*/` annotation fixed for more use cases where inlining happens.
|
22
|
+
|
23
|
+
## v4.6.1
|
24
|
+
|
25
|
+
- Fixed an issue where a class is duplicated by reduce_vars when there's a recursive reference to the class.
|
26
|
+
|
3
27
|
## v4.6.0
|
4
28
|
|
5
29
|
- Fixed issues with recursive class references.
|
package/README.md
CHANGED
@@ -1023,6 +1023,8 @@ can pass additional arguments that control the code output:
|
|
1023
1023
|
- `2` -- always use double quotes
|
1024
1024
|
- `3` -- always use the original quotes
|
1025
1025
|
|
1026
|
+
- `preserve_annotations` -- (default `false`) -- Preserve [Terser annotations](#annotations) in the output.
|
1027
|
+
|
1026
1028
|
- `safari10` (default `false`) -- set this option to `true` to work around
|
1027
1029
|
the [Safari 10/11 await bug](https://bugs.webkit.org/show_bug.cgi?id=176685).
|
1028
1030
|
See also: the `safari10` [mangle option](#mangle-options).
|