Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/drollup/plugins/terser/types.ts>CompressOptions

Next-generation ES module bundler ported for Deno
Latest
interface CompressOptions
import { type CompressOptions } from "https://deno.land/x/drollup@2.58.0+0.20.0/plugins/terser/types.ts";

Properties

optional
arguments: boolean
optional
arrows: boolean
optional
booleans_as_integers: boolean
optional
booleans: boolean
optional
collapse_vars: boolean
optional
comparisons: boolean
optional
computed_props: boolean
optional
conditionals: boolean
optional
dead_code: boolean
optional
defaults: boolean
optional
directives: boolean
optional
drop_console: boolean
optional
drop_debugger: boolean
optional
ecma: ECMA
optional
evaluate: boolean
optional
expression: boolean
optional
global_defs: Record<string, unknown>
optional
hoist_funs: boolean
optional
hoist_props: boolean
optional
hoist_vars: boolean
optional
ie8: boolean
optional
if_return: boolean
optional
inline: boolean | InlineFunctions
optional
join_vars: boolean
optional
keep_classnames: boolean | RegExp
optional
keep_fargs: boolean
optional
keep_fnames: boolean | RegExp
optional
keep_infinity: boolean
optional
loops: boolean
optional
module: boolean
optional
negate_iife: boolean
optional
passes: number
optional
properties: boolean
optional
pure_funcs: string[]
optional
pure_getters: boolean | "strict"
optional
reduce_funcs: boolean
optional
reduce_vars: boolean
optional
sequences: boolean | number
optional
side_effects: boolean
optional
switches: boolean
optional
toplevel: boolean
optional
top_retain:
| null
| string
| string[]
| RegExp
optional
typeofs: boolean
optional
unsafe_arrows: boolean
optional
unsafe: boolean
optional
unsafe_comps: boolean
optional
unsafe_Function: boolean
optional
unsafe_math: boolean
optional
unsafe_symbols: boolean
optional
unsafe_methods: boolean
optional
unsafe_proto: boolean
optional
unsafe_regexp: boolean
optional
unsafe_undefined: boolean
optional
unused: boolean