terser 4.6.10 → 4.6.11
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 +9 -0
- package/README.md +3 -3
- package/dist/bundle.min.js +1 -1
- package/dist/bundle.min.js.map +1 -1
- package/package.json +3 -3
- package/tools/terser.d.ts +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## v4.6.11
|
4
|
+
|
5
|
+
- Read unused classes' properties and method keys, to figure out if they use other variables.
|
6
|
+
- Prevent inlining into block scopes when there are name collisions
|
7
|
+
- Functions are no longer inlined into parameter defaults, because they live in their own special scope.
|
8
|
+
- When inlining identity functions, take into account the fact they may be used to drop `this` in function calls.
|
9
|
+
- Nullish coalescing operator (`x ?? y`), plus basic optimization for it.
|
10
|
+
- Template literals in binary expressions such as `+` have been further optimized
|
11
|
+
|
3
12
|
## v4.6.10
|
4
13
|
|
5
14
|
- Do not use reduce_vars when classes are present
|
package/README.md
CHANGED
@@ -133,7 +133,7 @@ a double dash to prevent input files being used as option arguments:
|
|
133
133
|
sequences.
|
134
134
|
--config-file <file> Read `minify()` options from JSON file.
|
135
135
|
-d, --define <expr>[=value] Global definitions.
|
136
|
-
--ecma <version> Specify ECMAScript release: 5,
|
136
|
+
--ecma <version> Specify ECMAScript release: 5, 2015, 2016, etc.
|
137
137
|
-e, --enclose [arg[:value]] Embed output in a big function with configurable
|
138
138
|
arguments and values.
|
139
139
|
--ie8 Support non-standard Internet Explorer 8.
|
@@ -534,7 +534,7 @@ if (result.error) throw result.error;
|
|
534
534
|
|
535
535
|
## Minify options
|
536
536
|
|
537
|
-
- `ecma` (default `undefined`) - pass `5`, `2015`, `2016
|
537
|
+
- `ecma` (default `undefined`) - pass `5`, `2015`, `2016`, etc to override `parse`,
|
538
538
|
`compress` and `output`'s `ecma` options.
|
539
539
|
|
540
540
|
- `warnings` (default `false`) — pass `true` to return compressor warnings
|
@@ -611,7 +611,7 @@ if (result.error) throw result.error;
|
|
611
611
|
sourceMap: {
|
612
612
|
// source map options
|
613
613
|
},
|
614
|
-
ecma: 5, // specify one of: 5, 2015, 2016,
|
614
|
+
ecma: 5, // specify one of: 5, 2015, 2016, etc.
|
615
615
|
keep_classnames: false,
|
616
616
|
keep_fnames: false,
|
617
617
|
ie8: false,
|