esbuild-shim-plugin
JSON →An esbuild plugin that polyfills import.meta.url for ESM modules and require/__filename/__dirname for CommonJS modules. Stable v1.0.3, released 2023. Lightweight, zero dependencies, ships TypeScript types. Key differentiator: solves the common problem of using Node.js module globals when bundling with esbuild, especially useful for mixed CJS/ESM codebases. Release cadence is low; no major changes expected.
Traffic · last 30 days ↓40% vs prev 7d
total hits 11
actors 4 distinct systems
last hit 6d ago Bingbot
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇪🇸 Spain · 🇸🇬 Singapore
Resources
API endpoints
full doc /v1/registry/esbuild-shim-plugin