We convert the settings.js to a json object, so we don’t have properties attached to the window that may conflict with existing properties.
The preloadModules therefore is:
"preloadModules": [
{"moduleName" : "DracoDecoderModule", "glueUrl" : "files/assets/140765540/1/draco.wasm.js", "wasmUrl" : "files/assets/140765541/1/draco.wasm.wasm", "fallbackUrl" : "files/assets/140765539/1/draco.js", "preload" : true},
{"moduleName" : "BASIS", "glueUrl" : "files/assets/140912398/1/basis.wasm.js", "wasmUrl" : "files/assets/140912396/1/basis.wasm.wasm", "fallbackUrl" : "files/assets/140912397/1/basis.js", "preload" : false}
]
We have no issue with Draco, however we are unable to make BASIS work as expected. If we do not create a window.PRELOAD_MODULES object it doesn’t instantiate. If we do create it, it fails to instantiate basis.
I can confirm all the basic files are contained by their folders.