How to use the @parcel/workers function in @parcel/workers

To help you get started, we’ve selected a few @parcel/workers examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github parcel-bundler / parcel / packages / core / core / src / Parcel.js View on Github external
export function createWorkerFarm(options: $Shape = {}) {
  return new WorkerFarm({
    ...options,
    workerPath: require.resolve('./worker'),
  });
}