UNPKG

histoire

Version:

A fast story book powered by Vite

8 lines (7 loc) • 228 B
export function story(ctx, id) { const moduleId = id.replace('\0', ''); const storyFile = ctx.storyFiles.find(f => f.moduleId === moduleId && f.virtual); if (storyFile) { return storyFile.moduleCode; } }