RunicViteOptions interface

Module @runic-artifex/vite-plugin-runic in @runic-artifex/vite-plugin-runic 0.23.0

interface RunicViteOptions

No documentation.

Properties

contract

readonly contract?: Readonly<{
    identity?: string;
    version?: string;
    fingerprint?: string;
}>;

Display-only metadata supplied by the application contract owner.

devtools

readonly devtools?: boolean | "auto";

false disables the DevTools dock and the development client that forwards @runic-artifex/views failures to the timeline.

maxTimelineEntries

readonly maxTimelineEntries?: number;

No documentation.

staleInputWarning

readonly staleInputWarning?: boolean;

false turns off the development client's stale-input warning: script that sets a focused text field to a value from before the user's last edit while a Bridge request is in flight. Defaults to true.

html

readonly html?: boolean;

false leaves HTML alone: the plugin has no transformIndexHtml hook, which SvelteKit warns about, injects neither the development client nor the Desktop bootstrap, and does not rewrite host scripts. The page loads the client itself with import "@runic-artifex/vite-plugin-runic/client", which the plugin serves while serving and replaces with an empty module in the build. Cannot be combined with desktop. Defaults to true.

desktop

readonly desktop?: boolean | Readonly<{
    bootstrapUrl?: string;
}>;

Injects the Runic Desktop bootstrap without taking ownership of Vite or HMR.

sourceMap

readonly sourceMap?: string | false;

The development source map that the Bridge generator writes to obj (runic-bridge/sources.json), which vite dev serves at /__runic/sources and opens in the editor through /__runic/open. A path names the file or a directory to search, relative to the Vite root. By default the plugin takes the path dotnet runic dev passes, else searches obj of the project, the Vite root and its parent. false reads no map: no /__runic/sources, and /__runic/open opens only frontend files that Vite serves. The build never reads it.

inspect

readonly inspect?: boolean;

false leaves Runic Inspect out of the development client: the select mode (Alt+Shift+X) that shows how an element is connected to its ViewModels, and globalThis[Symbol.for("runic.vite.inspect")]. Defaults to true. The build never contains it.

allow

readonly allow?: readonly string[];

Hosts and networks besides this machine whose pages may read Runic's development data (/__runic/state, /__runic/sources, /__runic/handlers, and the state and events over HMR) when the development server is reachable from them (server.host): IPv4 or IPv6 addresses, CIDR networks (a Tailscale network: 100.64.0.0/10, fd7a:115c:a1e0::/48) and host names, resolved when a request arrives. The RUNIC_DEV_ALLOW environment variable adds to them; Runic Translations' in-page editing API reads the same variable. Loopback only by default. /__runic/open stays loopback-only: it launches the editor on this machine.

otlp

readonly otlp?: boolean | RunicOtlpOptions;

Exports the page's spans of Bridge calls over OTLP while serving, so they join the .NET host's spans in one trace (W3C trace context in each call's request, trace-context/1). By default it is on when OTEL_EXPORTER_OTLP_ENDPOINT or OTEL_EXPORTER_OTLP_TRACES_ENDPOINT is set in the development server's environment, and off with OTEL_SDK_DISABLED=true or OTEL_TRACES_EXPORTER=none. The development server posts OTLP/HTTP JSON, so the endpoint is an OTLP/HTTP receiver. false turns it off; an object sets the URL, headers or service name. Requires the development client (devtools not false).