RunicComponentOptions interface

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

interface RunicComponentOptions

No documentation.

Properties

entry

readonly entry: string;

The component's entry module, relative to the Vite root. Its default export is the mount function (RunicComponentMount of @runic-artifex/views/experimental), which renders the guest's Views into the element.

name

readonly name?: string;

The guest's tag prefix: a lowercase letter, then lowercase letters, digits and hyphens. The element's tag is <name>-<hash>, with a hash of the build, so two guests, and two builds of one guest, never define the same tag. Defaults to the name of the root's package.json, made a valid prefix.