If you create a script, that is called "worker.js" with basic ScriptType implementation called "worker", and use Basis in your project. Then there is a racing condition, where it can lead to Basis failing to load. Only replicable when loading with cleared cache, or there is a significant project size (some delay for loading?).
Project that replicates an issue: https://playcanvas.com/project/1440466/overview/model-viewer
Launch with "disable cache" checkbox in dev tools.
Error:
