Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ayonli_jsext/parallel.ts>default.workerEntry

A JavaScript extension package for building strong and modern applications.
Latest
variable default.workerEntry
import { default } from "https://deno.land/x/ayonli_jsext@v0.9.72/parallel.ts";
const { workerEntry } = default;

In browsers, by default, the program loads the worker entry directly from GitHub, which could be slow due to poor internet connection, we can copy the entry file bundle/worker.mjs to a local path of our website and set this option to that path so that it can be loaded locally.

Or, if the code is bundled, the program won't be able to automatically locate the entry file in the file system, in such case, we can also copy the entry file (bundle/worker.mjs for Bun, Deno and the browser, bundle/worker-node.mjs for Node.js) to a local directory and supply this option instead.

type

string | undefined