Skip to content

resolveDocumentRef

resolveDocumentRef(documentPath, ref): string

Defined in: asset/documentRef.ts:63

Resolve a ref one document carries about another asset: a logical project path stands as it is, anything else is relative to the document. Every loader whose document names a sibling resolves through this, because the cook rewrites all of those refs to the same logical shape.

string

string

string