Skip to content

TypeScript API / @laikacms/vite-plugin / RepositoryChangeChannelOptions

Interface: RepositoryChangeChannelOptions ​

Properties ​

bodies? ​

ts
optional bodies?: object;

Set when mdx is enabled: the Vite root the body chunks are written under. Chunks are rewritten and invalidated before the reload is sent, so the reloaded page cannot pick up the new data module next to stale prose.

root ​

ts
root: string;

coarse? ​

ts
optional coarse?: boolean;

When true, any change invalidates every resolved laika: virtual module rather than only the ones whose keys changed. Coarser but immune to cross-namespace coupling (e.g. a storage object backing a Catalog document). Defaults to false (targeted per-key invalidation).

Released under the MIT License.