terser 5.46.2 → 5.47.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 +9 -0
- package/README.md +4 -0
- package/dist/bundle.min.js +417 -54
- package/lib/compress/evaluate.js +3 -4
- package/lib/compress/index.js +10 -2
- package/lib/compress/inference.js +5 -9
- package/lib/compress/native-objects.js +372 -40
- package/lib/scope.js +1 -0
- package/lib/utils/index.js +1 -1
- package/package.json +1 -1
- package/tools/domprops.js +29 -0
- package/tools/terser.d.ts +3 -1
- package/lib/compress/import-export.js +0 -121
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v5.47.1
|
|
4
|
+
|
|
5
|
+
- Fix crash when using `mangle.keep_fnames` with destructuring
|
|
6
|
+
|
|
7
|
+
## v5.47.0
|
|
8
|
+
|
|
9
|
+
- Add `builtins_ecma` and `builtins_pure` options
|
|
10
|
+
- Add Intl options to domprops (#1680)
|
|
11
|
+
|
|
3
12
|
## v5.46.2
|
|
4
13
|
|
|
5
14
|
- `unused` option: delete computed keys of concise methods and getters/setters.
|
package/README.md
CHANGED
|
@@ -740,6 +740,10 @@ If you happen to need the source map as a raw object, set `sourceMap.asObject` t
|
|
|
740
740
|
- `ecma` (default: `5`) -- Pass `2015` or greater to enable `compress` options that
|
|
741
741
|
will transform ES5 code into smaller ES6+ equivalent forms.
|
|
742
742
|
|
|
743
|
+
- `builtins_ecma` (default: `5`) -- An ES version number (like `ecma`). Tells Terser which well-known functions, constants, methods and classes are available in the global object. Does nothing by itself, but is used by `builtins_pure` and `unsafe`.
|
|
744
|
+
|
|
745
|
+
- `builtins_pure` (default: `false`) -- Pass `true` to assume that functions matched by the `builtins_ecma` option (such as `Math.sin` or `unescape`) are pure and calls to them can be removed.
|
|
746
|
+
|
|
743
747
|
- `evaluate` (default: `true`) -- attempt to evaluate constant expressions
|
|
744
748
|
|
|
745
749
|
- `expression` (default: `false`) -- Pass `true` to preserve completion values
|