Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

TerserCompressOptions

interface TerserCompressOptions {
arguments?: boolean;
arrows?: boolean;
booleans?: boolean;
booleans_as_integers?: boolean;
collapse_vars?: boolean;
comparisons?: boolean;
computed_props?: boolean;
conditionals?: boolean;
dead_code?: boolean;
defaults?: boolean;
directives?: boolean;
drop_console?: boolean;
drop_debugger?: boolean;
evaluate?: boolean;
expression?: boolean;
global_defs?: any;
hoist_funs?: boolean;
hoist_props?: boolean;
hoist_vars?: boolean;
ie8?: boolean;
if_return?: boolean;
inline?:
| 0
| 1
| 2
| 3;
join_vars?: boolean;
keep_classnames?: boolean;
keep_fargs?: boolean;
keep_fnames?: boolean;
keep_infinity?: boolean;
loops?: boolean;
module?: boolean;
negate_iife?: boolean;
passes?: number;
properties?: boolean;
pure_funcs?: string[];
pure_getters?: any;
reduce_funcs?: boolean;
reduce_vars?: boolean;
sequences?: any;
side_effects?: boolean;
switches?: boolean;
top_retain?: any;
toplevel?: any;
typeofs?: boolean;
unsafe?: boolean;
unsafe_arrows?: boolean;
unsafe_comps?: boolean;
unsafe_function?: boolean;
unsafe_math?: boolean;
unsafe_methods?: boolean;
unsafe_passes?: boolean;
unsafe_proto?: boolean;
unsafe_regexp?: boolean;
unsafe_symbols?: boolean;
unsafe_undefined?: boolean;
unused?: boolean;
}

§Properties

§
arguments?: boolean
[src]
§
arrows?: boolean
[src]
§
booleans?: boolean
[src]
§
booleans_as_integers?: boolean
[src]
§
collapse_vars?: boolean
[src]
§
comparisons?: boolean
[src]
§
computed_props?: boolean
[src]
§
conditionals?: boolean
[src]
§
dead_code?: boolean
[src]
§
defaults?: boolean
[src]
§
directives?: boolean
[src]
§
drop_console?: boolean
[src]
§
drop_debugger?: boolean
[src]
§
evaluate?: boolean
[src]
§
expression?: boolean
[src]
§
global_defs?: any
[src]
§
hoist_funs?: boolean
[src]
§
hoist_props?: boolean
[src]
§
hoist_vars?: boolean
[src]
§
ie8?: boolean
[src]
§
if_return?: boolean
[src]
§
inline?: 0 | 1 | 2 | 3
[src]
§
join_vars?: boolean
[src]
§
keep_classnames?: boolean
[src]
§
keep_fargs?: boolean
[src]
§
keep_fnames?: boolean
[src]
§
keep_infinity?: boolean
[src]
§
loops?: boolean
[src]
§
module?: boolean
[src]
§
negate_iife?: boolean
[src]
§
passes?: number
[src]
§
properties?: boolean
[src]
§
pure_funcs?: string[]
[src]
§
pure_getters?: any
[src]
§
reduce_funcs?: boolean
[src]
§
reduce_vars?: boolean
[src]
§
sequences?: any
[src]
§
side_effects?: boolean
[src]
§
switches?: boolean
[src]
§
top_retain?: any
[src]
§
toplevel?: any
[src]
§
typeofs?: boolean
[src]
§
unsafe?: boolean
[src]
§
unsafe_arrows?: boolean
[src]
§
unsafe_comps?: boolean
[src]
§
unsafe_function?: boolean
[src]
§
unsafe_math?: boolean
[src]
§
unsafe_methods?: boolean
[src]
§
unsafe_passes?: boolean
[src]
§
unsafe_proto?: boolean
[src]
§
unsafe_regexp?: boolean
[src]
§
unsafe_symbols?: boolean
[src]
§
unsafe_undefined?: boolean
[src]
§
unused?: boolean
[src]