[]previous and next page

ServerFnTransformResult

Outcome of transformServerFns.

Outcome of transformServerFns.

Import#

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

Signature#

ts
interface ServerFnTransformResult {
  /** The new text; equals the input when nothing changed. */
  readonly code: string;
  readonly map: ReturnType<MagicString["generateMap"]> | null;
  readonly changed: boolean;
  /** The server functions of the module. */
  readonly fns: readonly ServerFnInfo[];
  /** Sources of side-effect imports that stayed in a client module (they run for their effects). */
  readonly sideEffectImports: readonly string[];
}

Members#

Name Type Description
code readonly code: string The new text; equals the input when nothing changed.
map readonly map: ReturnType<MagicString["generateMap"]> | null
changed readonly changed: boolean
fns readonly fns: readonly ServerFnInfo[] The server functions of the module.
sideEffectImports readonly sideEffectImports: readonly string[] Sources of side-effect imports that stayed in a client module (they run for their effects).