// Renderer worker ES-module loader.
// wasm-bindgen --target web emits renderer_worker.js which exports an `init`
// function that must be called with the WASM module path before the worker
// can receive messages. This loader does that and is the entry point for the
// module worker spawned by WorkerBridge.
const { default: init } = await import(new URL('/renderer_worker.js', self.location.origin));
await init({ module_or_path: '/renderer_worker_bg.wasm' });
