Skip to content

@modoki/engine / index / resolveRef

Function: resolveRef() ​

resolveRef(ref): string | undefined

Resolve a reference to a path. GUIDs resolve through the manifest; external URLs (http/data/blob) pass through unchanged. An internal asset path is no longer a valid reference — it's rejected with a one-time loud error and resolves to undefined so the asset fails visibly instead of silently loading. Anything else (sprite keyword, font-family name) passes through unchanged.

Parameters ​

ref ​

string

Returns ​

string | undefined

Built with Modoki.