Install the TextEncoder / TextDecoder polyfill on globalThis.
The QuickJS scene runtime ships no native TextEncoder / TextDecoder, yet
compositeProvider.loadComposite decodes .composite JSON file bytes via
TextDecoder. Callers that load composites at runtime (e.g. @dcl/asset-packs'
SPAWN_ENTITY) must install this first.
Exposed from the lean @dcl/sdk/text-codec subpath so consumers can install
the polyfill without pulling in the ethereum provider, and without bundling
text-encoding into scenes that never reach this module.
Install the
TextEncoder/TextDecoderpolyfill onglobalThis.The QuickJS scene runtime ships no native
TextEncoder/TextDecoder, yetcompositeProvider.loadCompositedecodes.compositeJSON file bytes viaTextDecoder. Callers that load composites at runtime (e.g.@dcl/asset-packs'SPAWN_ENTITY) must install this first.Exposed from the lean
@dcl/sdk/text-codecsubpath so consumers can install the polyfill without pulling in the ethereum provider, and without bundlingtext-encodinginto scenes that never reach this module.