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

x/live/deps.ts>Config

Git-based Visual CMS for Deno, </> htmx and Tailwind apps. Deploy on any Deno-compatible host.
Go to Latest
interface Config
import { type Config } from "https://deno.land/x/live@1.77.0/deps.ts";

.swcrc

Properties

optional
test: string | string[]

Note: The type is string because it follows rust's regex syntax.

optional
exclude: string | string[]

Note: The type is string because it follows rust's regex syntax.

optional
env: EnvConfig
optional
jsc: JscConfig
optional
module: ModuleConfig
optional
minify: boolean
optional
sourceMaps: boolean | "inline"
  • true to generate a sourcemap for the code and include it in the result object.
  • "inline" to generate a sourcemap and append it as a data URL to the end of the code, but not include it in the result object.

swc-cli overloads some of these to also affect how maps are written to disk:

  • true will write the map to a .map file on disk
  • "inline" will write the file directly, so it will have a data: containing the map
  • Note: These options are bit weird, so it may make the most sense to just use true and handle the rest in your own code, depending on your use case.
optional
inlineSourcesContent: boolean