Skip to content

@burnmark-io/designer-core


@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 document
  • assets/<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

LabelDocument

assetLoader

AssetLoader

Returns

Promise<{ blob: Blob; missing: string[]; }>

Not affiliated with Dymo, Brother, Avery, or any hardware vendor.