Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

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

These properties are mostly not implemented yet, but it exists to support passing terser config to swc minify without modification.

Properties

optional
asciiOnly: boolean

Currently noop.

optional
beautify: boolean

Currently noop.

optional
braces: boolean

Currently noop.

optional
comments: false | "some" | "all"
  • false: removes all comments
  • 'some': preserves some comments
  • 'all': preserves all comments
optional
ecma: TerserEcmaVersion

Currently noop.

optional
indentLevel: number

Currently noop.

optional
indentStart: number

Currently noop.

optional
inlineScript: number

Currently noop.

optional
keepNumbers: number

Currently noop.

optional
keepQuotedProps: boolean

Currently noop.

optional
maxLineLen: number | false

Currently noop.

optional
preamble: string

Currently noop.

optional
quoteKeys: boolean

Currently noop.

optional
quoteStyle: boolean

Currently noop.

optional
preserveAnnotations: boolean

Currently noop.

optional
safari10: boolean

Currently noop.

optional
semicolons: boolean

Currently noop.

optional
shebang: boolean

Currently noop.

optional
webkit: boolean

Currently noop.

optional
wrapIife: boolean

Currently noop.

optional
wrapFuncArgs: boolean

Currently noop.