{"library":"build-worker","type":"library","category":null,"description":"build-worker is a utility that bundles Cloudflare Workers using esbuild, offering a significantly faster alternative to webpack-based solutions like Wrangler v1. It was developed to fill a gap while Cloudflare's official Wrangler v2 (now Wrangler v3) was not yet fully production-ready, as both leverage esbuild for bundling. The package, currently at version 0.3.4, applies an esbuild configuration similar to that used by Wrangler, streamlining the build process for Workers. A key feature is the automatic replacement of the `IS_CLOUDFLARE_WORKER` global variable with `true` during the build, enabling developers to write environment-specific code. Its release cadence is likely irregular, tied to the evolution of Cloudflare's official tooling.","language":"javascript","status":"active","version":"0.3.4","tags":["javascript","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install build-worker","imports":["import { buildWorker } from 'build-worker'"]},{"cmd":"yarn add build-worker","imports":[]},{"cmd":"pnpm add build-worker","imports":[]}],"homepage":null,"github":"https://github.com/brillout/build-worker","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/build-worker","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/build-worker/compatibility"}}