Skip to content

Intermact API Reference / @intermact/core / globalRegistries

Variable: globalRegistries

const globalRegistries: Registries

Defined in: packages/core/src/extend/registries.ts:70

The ambient registries consulted by built-in dispatch (custom-animation compilation, generator/object/backend lookup helpers). Plugins installed via installPlugin without an explicit target land here. Stored on globalThis (keyed by a shared Symbol.for) so duplicate module instances converge on one bundle rather than silently diverging.

For isolated builds (multiple programs, distinct plugin sets, parallel tests) prefer an explicit createRegistries bundle threaded via BuildOptions.registries / DeserializeOptions.registries.

Intermact v1.0 — 文档覆盖 Phase-1 / Phase-2 / Phase-3(全阶段)