UNPKG

histoire

Version:

A fast story book powered by Vite

10 lines (8 loc) • 362 B
import type { ServerRunPayload } from '@histoire/shared' // @ts-expect-error virtual module import { collectSupportPlugins } from 'virtual:$histoire-support-plugins-collect' export async function run(payload: ServerRunPayload) { const { run } = await collectSupportPlugins[payload.file.supportPluginId]() const result = await run(payload) return result }