Vite

Wraps a DevframeDefinition so Vite DevTools' kit plugin-scan picks it up. The factory lives in @vitejs/devtools-kit/node, keeping devframe Vite-free.

Wraps a DevframeDefinition so Vite DevTools' kit plugin-scan picks it up. The factory lives in @vitejs/devtools-kit/node, keeping devframe Vite-free.

import { createPluginFromDevframe } from '@vitejs/devtools-kit/node'
import myDevframe from './my-tool'

export default function myVitePlugin() {
  return createPluginFromDevframe(myDevframe)
}

The returned object has the shape { name, devtools: { setup, capabilities } }. See DevTools Plugin.

OptionDefaultDescription
namedevframe:<id>Plugin name.
basedef.basePath ?? /.${id}/Mount path override.
dock{}Overrides for the iframe dock entry (category, icon, when).
setupnoneSetup hook run only in the Vite host; receives the kit-augmented context.