UNPKG

histoire

Version:

A fast story book powered by Vite

6 lines (5 loc) • 192 B
import { ID_SEPARATOR } from './util.js'; export function resolvedGeneratedSetupCode(ctx, id) { const [, index] = id.split(ID_SEPARATOR); return ctx.config.setupCode?.[index] ?? ''; }