Assets are not usually fully fetched while the code being generated. this full fetching process not only takes networking / extracting time, but also charges lots of memory + hosting storage.
with special string keys
- build with preview dummy,
- asyncronously fetch assets, replace the url strings, update code seamlessly.
with after tokenization
- detect & tokenize
- fetch required assets
- build with all assets ready to use
- build for user preview with dummy url,
- rebuild whole with asset repository provided when final export. (and when executing)
- fetch all required images beforehand,
- build with all assets available.
This can't be working since we don't know which node will be converted as a asset (before detection, we can't know.)
this is only valid withoyt extra asset detection, using only pre-defined pure image assets.
@design-sdk/asset-repository