UNPKG

@chainsafe/threads

Version:

Web workers & worker threads as simple as a function call

8 lines (7 loc) 225 B
import { Worker as WorkerImplementation } from "./index"; if (typeof global !== "undefined") { global.Worker = WorkerImplementation; } else if (typeof window !== "undefined") { window.Worker = WorkerImplementation; }