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

x/live/deps.ts>JsFormatOptions

Open-Source web editor based on Preact, Tailwind and TypeScript. The other side of code.
Go to Latest
interface JsFormatOptions
import { type JsFormatOptions } from "https://deno.land/x/live@1.53.6/deps.ts";

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.