Log inGet started

bundle

Updated 5 September 2026

The bundle namespace — 2 functions.

globals/bundle/update

bundle.update(entityId: string, bundleRef: BundleRef?) -> any

Re-compose a bundle from an entity's current hierarchy and write it back to the bundle's on-disk path. The VFS write triggers the engine's generic asset hot-reload pipeline, which fires onAssetReload(field) on every component subscribed to this bundle's guid via a declared asset field — those components reconcile per their own policy.

Parameters

  • entityId string — The entity whose hierarchy is captured into the bundle.
  • bundleRef BundleRef (optional) — Optional. When omitted, the ref is inferred from the entity's Asset.source field. When given, the explicit ref wins.

Returns any — True on success (forwarded from the bundle assetType's :update).

bundle.update(entityId)                     -- infer from Asset
bundle.update(entityId, { guid = "..." })   -- explicit ref

typed/builtin//modules/bundle_update/bundle/update

bundle.update(entityId: string, bundleRef: BundleRef?) -> any

Re-compose a bundle from an entity's current hierarchy and write it back to the bundle's on-disk path. The VFS write triggers the engine's generic asset hot-reload pipeline, which fires onAssetReload(field) on every component subscribed to this bundle's guid via a declared asset field — those components reconcile per their own policy.

Parameters

  • entityId string — The entity whose hierarchy is captured into the bundle.
  • bundleRef BundleRef (optional) — Optional. When omitted, the ref is inferred from the entity's Asset.source field. When given, the explicit ref wins.

Returns any — True on success (forwarded from the bundle assetType's :update).

bundle.update(entityId)                     -- infer from Asset
bundle.update(entityId, { guid = "..." })   -- explicit ref
  • api
  • reference