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

x/keywork/bundling/esbuild/worker.ts>createWorkerBuildOptions

A library for building V8 Isolate web apps on Cloudflare Workers, Deno, and Node.JS
Go to Latest
function createWorkerBuildOptions
import { createWorkerBuildOptions } from "https://deno.land/x/keywork@v5.0.3/bundling/esbuild/worker.ts";

ESBuild options for the Worker bundle.

The Worker runtime on Cloudflare Pages may differ from a standard Worker deployment.

If you're encountering runtime errors, consider adding the ReadableStream polyfill:

import esbuild from 'esbuild'

esbuild.build({
  ...workerBuildOptions,
  inject: [require.resolve('keywork/polyfills/ReadableStream')],
})

Parameters

entryPoints: string[]
optional
outfile = [UNSUPPORTED]