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

x/mesozoic/lib/swc.ts>Types.TerserCompressOptions

A generic build system for Deno web apps
Go to Latest
interface Types.TerserCompressOptions
import { type Types } from "https://deno.land/x/mesozoic@v1.0.1/lib/swc.ts";
const { TerserCompressOptions } = Types;

Properties

optional
arguments: boolean
optional
arrows: boolean
optional
booleans: boolean
optional
booleans_as_integers: 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: TerserEcmaVersion
optional
evaluate: boolean
optional
expression: boolean
optional
global_defs: any
optional
hoist_funs: boolean
optional
hoist_props: boolean
optional
hoist_vars: boolean
optional
ie8: boolean
optional
if_return: boolean
optional
inline:
| 0
| 1
| 2
| 3
optional
join_vars: boolean
optional
keep_classnames: boolean
optional
keep_fargs: boolean
optional
keep_fnames: boolean
optional
keep_infinity: boolean
optional
loops: boolean
optional
negate_iife: boolean
optional
passes: number
optional
properties: boolean
optional
pure_getters: any
optional
pure_funcs: string[]
optional
reduce_funcs: boolean
optional
reduce_vars: boolean
optional
sequences: any
optional
side_effects: boolean
optional
switches: boolean
optional
top_retain: any
optional
toplevel: any
optional
typeofs: boolean
optional
unsafe: boolean
optional
unsafe_passes: boolean
optional
unsafe_arrows: 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
optional
module: boolean