An esbuild plugin that removes duplicate require statements from minified JavaScript bundles, reducing output size and potentially improving runtime performance. Version 0.0.0 is the initial release, with no further updates or release cadence information. Key differentiator: focuses on duplicate require removal, a niche optimization not addressed by standard minification plugins. However, the package is extremely new (single initial release) and has low adoption. Use with caution for experimental or size-sensitive builds.
npm install esbuild-plugin-remove-duplicate-requireNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates how to use the plugin with esbuild to remove duplicate require statements during minified builds.
Test thoroughly after adding the plugin, especially in codebases with dynamic requires or side effects.
Monitor the repository for updates or consider alternative plugins with more maturity.
The correct package name is 'esbuild-plugin-rdi' (shorthand). Use `npm install esbuild-plugin-rdi`.
Use `import { rdiPlugin } from 'esbuild-plugin-rdi'`.