esbuild-plugin-node-worker

JSON →
library 1.0.8 ·javascript
verified May 1, 2026

An esbuild plugin that automatically detects and bundles Node.js Web Workers used in your source code. Version 1.0.8, stable maintenance. Workers are emitted as separate chunks into a workers/ directory with content hashing to avoid name collisions. It relies on the first string literal argument to Worker constructors being a relative path, supporting both ESM (new URL) and CJS (path.join). Differentiators: minimal configuration needed (just add the plugin), works with extended Worker classes, and integrates directly into esbuild's build pipeline. Peer dependency on esbuild. Ships TypeScript types.

total hits 8
actors 3 distinct systems
last hit 4d ago AhrefsBot
GPTBot
2
Script
1
Humans
2

top countries 🇨🇦 Canada · 🇺🇸 United States · VN · 🇩🇪 Germany · 🇮🇳 India