terser 4.3.5 → 4.3.9
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 +16 -0
- package/README.md +10 -10
- package/bin/terser +3 -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 +4 -2
package/package.json
CHANGED
package/tools/terser.d.ts
CHANGED
@@ -14,6 +14,7 @@ export interface ParseOptions {
|
|
14
14
|
export interface CompressOptions {
|
15
15
|
arguments?: boolean;
|
16
16
|
arrows?: boolean;
|
17
|
+
booleans_as_integers?: boolean;
|
17
18
|
booleans?: boolean;
|
18
19
|
collapse_vars?: boolean;
|
19
20
|
comparisons?: boolean;
|
@@ -31,6 +32,7 @@ export interface CompressOptions {
|
|
31
32
|
hoist_funs?: boolean;
|
32
33
|
hoist_props?: boolean;
|
33
34
|
hoist_vars?: boolean;
|
35
|
+
ie8?: boolean;
|
34
36
|
if_return?: boolean;
|
35
37
|
inline?: boolean | InlineFunctions;
|
36
38
|
join_vars?: boolean;
|
@@ -53,8 +55,8 @@ export interface CompressOptions {
|
|
53
55
|
toplevel?: boolean;
|
54
56
|
top_retain?: null | string | string[] | RegExp;
|
55
57
|
typeofs?: boolean;
|
56
|
-
unsafe?: boolean;
|
57
58
|
unsafe_arrows?: boolean;
|
59
|
+
unsafe?: boolean;
|
58
60
|
unsafe_comps?: boolean;
|
59
61
|
unsafe_Function?: boolean;
|
60
62
|
unsafe_math?: boolean;
|
@@ -98,10 +100,10 @@ export interface OutputOptions {
|
|
98
100
|
braces?: boolean;
|
99
101
|
comments?: boolean | 'all' | 'some' | RegExp | Function;
|
100
102
|
ecma?: ECMA;
|
103
|
+
ie8?: boolean;
|
101
104
|
indent_level?: number;
|
102
105
|
indent_start?: number;
|
103
106
|
inline_script?: boolean;
|
104
|
-
ie8?: boolean;
|
105
107
|
keep_quoted_props?: boolean;
|
106
108
|
max_line_len?: number | false;
|
107
109
|
preamble?: string;
|