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

x/ayonli_jsext/index.ts>parallel.workerEntry

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

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