UNPKG

histoire

Version:

A fast story book powered by Vite

8 lines (6 loc) • 248 B
import type { Context } from '../context.js' import { ID_SEPARATOR } from './util.js' export function resolvedGeneratedSetupCode(ctx: Context, id: string) { const [, index] = id.split(ID_SEPARATOR) return ctx.config.setupCode?.[index] ?? '' }