Struct swc_ecma_minifier::option::terser::TerserCompressorOptions
source · [−]pub struct TerserCompressorOptions {Show 54 fields
pub arguments: bool,
pub arrows: Option<bool>,
pub booleans: Option<bool>,
pub booleans_as_integers: bool,
pub collapse_vars: Option<bool>,
pub comparisons: Option<bool>,
pub computed_props: bool,
pub conditionals: bool,
pub dead_code: bool,
pub defaults: bool,
pub directives: bool,
pub drop_console: bool,
pub drop_debugger: Option<bool>,
pub ecma: TerserEcmaVersion,
pub evaluate: Option<bool>,
pub expression: bool,
pub global_defs: AHashMap<JsWord, Value>,
pub hoist_funs: bool,
pub hoist_props: Option<bool>,
pub hoist_vars: bool,
pub ie8: bool,
pub if_return: Option<bool>,
pub inline: Option<TerserInlineOption>,
pub join_vars: Option<bool>,
pub keep_classnames: bool,
pub keep_fargs: Option<bool>,
pub keep_fnames: bool,
pub keep_infinity: bool,
pub loops: Option<bool>,
pub negate_iife: Option<bool>,
pub passes: usize,
pub properties: Option<bool>,
pub pure_getters: TerserPureGetterOption,
pub pure_funcs: Vec<String>,
pub reduce_funcs: bool,
pub reduce_vars: bool,
pub sequences: Option<TerserSequenceOptions>,
pub side_effects: Option<bool>,
pub switches: bool,
pub top_retain: Option<TerserTopRetainOption>,
pub toplevel: Option<TerserTopLevelOptions>,
pub typeofs: Option<bool>,
pub unsafe_passes: bool,
pub unsafe_arrows: bool,
pub unsafe_comps: bool,
pub unsafe_function: bool,
pub unsafe_math: bool,
pub unsafe_symbols: bool,
pub unsafe_methods: bool,
pub unsafe_proto: bool,
pub unsafe_regexp: bool,
pub unsafe_undefined: bool,
pub unused: Option<bool>,
pub module: bool,
}
Fields
arguments: bool
arrows: Option<bool>
booleans: Option<bool>
booleans_as_integers: bool
collapse_vars: Option<bool>
comparisons: Option<bool>
computed_props: bool
conditionals: bool
dead_code: bool
defaults: bool
directives: bool
drop_console: bool
drop_debugger: Option<bool>
ecma: TerserEcmaVersion
evaluate: Option<bool>
expression: bool
global_defs: AHashMap<JsWord, Value>
hoist_funs: bool
hoist_props: Option<bool>
hoist_vars: bool
ie8: bool
if_return: Option<bool>
inline: Option<TerserInlineOption>
join_vars: Option<bool>
keep_classnames: bool
keep_fargs: Option<bool>
keep_fnames: bool
keep_infinity: bool
loops: Option<bool>
negate_iife: Option<bool>
passes: usize
properties: Option<bool>
pure_getters: TerserPureGetterOption
pure_funcs: Vec<String>
reduce_funcs: bool
reduce_vars: bool
sequences: Option<TerserSequenceOptions>
side_effects: Option<bool>
switches: bool
top_retain: Option<TerserTopRetainOption>
toplevel: Option<TerserTopLevelOptions>
typeofs: Option<bool>
unsafe_passes: bool
unsafe_arrows: bool
unsafe_comps: bool
unsafe_function: bool
unsafe_math: bool
unsafe_symbols: bool
unsafe_methods: bool
unsafe_proto: bool
unsafe_regexp: bool
unsafe_undefined: bool
unused: Option<bool>
module: bool
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for TerserCompressorOptions
impl Send for TerserCompressorOptions
impl Sync for TerserCompressorOptions
impl Unpin for TerserCompressorOptions
impl UnwindSafe for TerserCompressorOptions
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more