Skip to content

@vttforge/core / registerModule

Function: registerModule()

registerModule(config): ModuleRegistration

Register a Foundry module with VTTForge.

Calling twice with the same id throws VTTF-0001, almost always a hot-reload artefact or a duplicate import. The CONFIG mutations are deferred until Foundry's init hook fires.

Parameters

config

ModuleRegistration

Returns

ModuleRegistration

MIT licensed.