How to inject `@babylonjs/ktx2decoder` into Babylon?

Thank you so much for all of your help, @alexchuber !

I’ve created a PR: Fix: Remove enforced undefined for MSC_TRANSCODER by regnaio · Pull Request #17751 · BabylonJS/Babylon.js · GitHub


Also I was wondering if you could please help with something related:

The code above (and official documentation) use initializeWebWorker()and workerFunction()from @babylonjs/core/Misc/khronosTextureContainer2Worker.js:

import { initializeWebWorker } from '@babylonjs/core/Misc/khronosTextureContainer2Worker.js';

// ...

import { workerFunction } from '@babylonjs/core/Misc/khronosTextureContainer2Worker.js';

Is it possible for the global BABYLONobject to contain these 2 functions? I currently just use a local copy of the CDN babylon.js and would like to avoid importing @babylonjs/core just to use 2 functions.

Thank you so much!