(path: string)
| 27 | }).pipe(Effect.provide(PoolLive), NodeRuntime.runMain) |
| 28 | |
| 29 | const tsWorker = (path: string) => { |
| 30 | const url = new URL(path, import.meta.url) |
| 31 | return new WT.Worker(`import('tsx/esm/api').then(({ register }) => { register(); import('${url.pathname}') })`, { |
| 32 | eval: true |
| 33 | }) |
| 34 | } |