[]previous and next page

ServerFnTransformOptions

Options of transformServerFns.

Options of transformServerFns.

Import#

ts
import type { ServerFnTransformOptions } from "@shadow-js/dusk/vite";

Signature#

ts
interface ServerFnTransformOptions {
  /** Module text. */
  readonly code: string;
  /** Absolute file path. */
  readonly file: string;
  /** Project root: ids hash the path relative to it. */
  readonly root: string;
  /** `"client"` stubs the functions out, `"server"` keeps them, `"analyze"` only lists them. */
  readonly target: "client" | "server" | "analyze";
  /** Mount base of the app without a trailing slash. Default `""`. */
  readonly base?: string;
}

Members#

Name Type Description
code readonly code: string Module text.
file readonly file: string Absolute file path.
root readonly root: string Project root: ids hash the path relative to it.
target readonly target: "client" | "server" | "analyze" "client" stubs the functions out, "server" keeps them, "analyze" only lists them.
base? readonly base?: string Mount base of the app without a trailing slash. Default "".