Skip to content

xrayVitePlugin

xrayVitePlugin(options?): Plugin<any>[]

Defined in: index.ts:79

Create the Vite plugins that resolve committed Plates and, during dev, capture new Plates from rendered <Skeleton> boundaries.

Typical setup:

import { xrayVitePlugin } from '@hueest/xray'
export default {
plugins: [xrayVitePlugin({ hud: true })],
}

Returns two plugins:

  • xray:data resolves virtual:xray/plates/<name> from committed Plate files in dev and build.
  • xray:dev runs only during vite serve; it injects the capture client, receives Captures, writes Plate files, and hot-updates the page.

XrayOptions = {}

Plugin<any>[]