createNodeWorkerHost(mods?: NodeWorkerModules): IWorkerHost
Creates an IWorkerHost backed by node:worker_threads.
file: specifiers are passed to the Worker constructor as URL
instances (Node rejects file: URLs given as strings); other specifiers
pass through as paths.
optional
mods: NodeWorkerModules = defaultNodeWorkerModules
Injected Node modules (defaults to real node: built-ins)