un-ts / synckit

Perform async work synchronously in Node.js using `worker_threads` with first-class TypeScript and Yarn P'n'P support.

Home Page:https://npm.im/synckit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[feat] shared `globals` support

JounQin opened this issue · comments

const syncFn = createSyncFn(workerPath, {
  globals: true, // or `{ performance: 'performance' }` for example
})