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

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

A library for building V8 Isolate web apps on Cloudflare Workers, Deno, and Node.JS
Latest
function createWorkerBuildOptions
import { createWorkerBuildOptions } from "https://deno.land/x/keywork@v6.2.1/bundling/esbuild/functions/createWorkerBuildOptions.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]