if (!isMainThread) {
throw new Error('Cannot get a worker implementation outside the main thread')
}
workerOptions = mergeDeepRight<WorkerOptions>(DEFAULT_WORKER_OPTIONS, workerOptions ?? {})
if (!isMainThread) {
throw new Error('Cannot get a worker implementation outside the main thread')
}
workerOptions = mergeDeepRight<WorkerOptions>(DEFAULT_WORKER_OPTIONS, workerOptions ?? {})