@memoized-dom/runtime
v0.0.9
Published
Dependency-free runtime for compiler-analyzed memoized DOM updates
Readme
@memoized-dom/runtime
Dependency-free registry, scheduling, optional dirty-reason batching, access routing, keyed regions, props boxes, cleanup/ref ownership, and DOM value helpers for memoized-dom compiler output.
Application source does not need to import reactive primitives. The ordinary browser entry imports only the mounting boundary:
import { mount } from '@memoized-dom/runtime';
import { App } from './App';
mount('root', App);Generated modules import this package as one namespace:
import * as MD from '@memoized-dom/runtime';mount() resolves string targets with document.getElementById(), owns only
the nodes produced by the compiled root, returns an idempotent unmount()
handle, and keeps the compiler's private factory ABI out of authored code.
The package is independently buildable:
bun run build