ESBuild Plugin to Remove Duplicate Requires
JSON →esbuild-plugin-rdi is an ESBuild plugin designed to optimize JavaScript bundles by identifying and removing redundant `require` statements during the minification phase. This process helps to reduce the final bundle size, improving application load times and overall performance. The package is currently at version `0.0.0`, indicating an initial public release or very early development stage. As such, its API surface and internal behavior might be subject to rapid changes, and a formal release cadence is not yet established. Its primary differentiator lies in its targeted approach to deduplicating `require` calls, which can be particularly beneficial for projects that compile to or still rely on CommonJS modules, or when integrating with frameworks like React (versions 18 and 19) and Next.js (versions 14 and 15), especially in scenarios involving React Server Components where such optimizations are crucial. The plugin is intended for use within an `esbuild` build pipeline or through tools like `tsup` that leverage `esbuild`.
Traffic · last 30 days ↑67% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇫🇷 France · 🇩🇪 Germany