@burnmark-io/designer-core / exportBundled
Function: exportBundled()
exportBundled(
doc,assetLoader):Promise<{blob:Blob;missing:string[]; }>
Defined in: packages/core/src/export/bundle.ts:16
Bundle a document and its referenced assets into a ZIP. The ZIP contains:
label.json— the serialised documentassets/<assetKey>— one entry per unique assetKey in the document
Assets are fetched via the supplied AssetLoader. If an asset is missing, it's omitted from the bundle and reported in the missing return.
Parameters
doc
assetLoader
Returns
Promise<{ blob: Blob; missing: string[]; }>