Skip to main content
Module

x/cav/bundle.ts>BundleScriptOptions

A server framework for Deno
Go to Latest
interface BundleScriptOptions
import { type BundleScriptOptions } from "https://deno.land/x/cav@0.0.14/bundle.ts";

Options for bundling TypeScript and JavaScript browser assets.

Properties

optional
cwd: string

Sets the current working directory when resolving the path of the file to bundle. If a "file://" path is specified (e.g. when using import.meta.url), the cwd will be the parent folder of that path.
Default: "."

input: string

The path to the input TypeScript or JavaScript file, relative to the cwd.

output: string

The path to the output JavaScript, relative to the cwd.

optional
watch: boolean

If true, sets up a Deno.watchFs() file watcher that will rebundle the input whenever the file or its dependencies have been modified. Default: "false"