That’s a bummer. I wonder if we can load our promise polyfill in the web worker. For now, you can disable Draco compression from running in a web worker by doing something like this:
I guess any polyfill with self reference instead of window will do (for example promise-polyfill/polyfill.js at master · taylorhakes/promise-polyfill · GitHub) .
Adding this kind of global object detection method (self->window->global) to the PromisePolyfill.Apply method (in BJS) will allow you to use this polyfill in webworkers as well (not tested, just a thought )
I just noticed this thread, it appears the fix that was done here broke all my code (possibly b/c of my poor coding skills ), I started another thread about it but it looks like the cdn/stable version of Babylon.js references the preview versions of these draco decoder files