Skip to main content

Module engine

Module engine 

Source

Modules§

accumulator
cache
Persistent per-file compile cache at <output_dir>/.cache/dmc/, one {16-hex blake3}.json per record. Cache hits are O(read + parse). Key encodes dmc version + source bytes + path + config fingerprint; nothing overwrites in place.
collection
compile
config
index
index.js + index.d.ts re-exporting every collection’s <name>.json. Two .d.ts modes: velite-style (TS/JS config, infer via typeof import(..)) and self-contained (TOML, from schema).
schema_ts
dmc-schema descriptor -> TS type emitter for generated index.d.ts. Unknown shapes fall back to unknown (build never fails on an unrecognised descriptor).
sidecar
utils

Structs§

Engine