UNPKG

histoire

Version:

A fast story book powered by Vite

7 lines (6 loc) • 323 B
import { normalize } from 'pathe'; import { hashContent } from '../../runtime/content/hash.js'; /** Stable opaque book identity shared by dev handles/builds; private Node project IDs stay separate. */ export function getEmbedSourceId(root) { return hashContent(`histoire-book:${normalize(root).replace(/\/$/, '')}`); }