I am having a problem here that it does not seem like others are running into. I am trying to use Cesium objects in a web worker for data parsing to avoid having the main thread hitch. Even the most simple web worker will immediately give me an error “Uncaught ReferenceError: global is not defined” as soon as any Cesium object is instantiated. For example this.
import { Cartesian3 } from ‘cesium’;
self.onmessage = (event: MessageEvent) => {
const testcoord: Cartesian3 = new Cartesian3;
self.postMessage(testcoord);
};
I believe this is some sort of configuration issue but I was hoping someone else ran into it. Any help would be appreciated.