ESBuild plugin to remove duplicate require/import statements from minified builds. Current stable version is 0.0.0. The plugin is part of a tooling ecosystem from react18-tools and works with esbuild and tsup. It deduplicates require calls to reduce bundle size, especially useful for React server components. As of now, it has minimal documentation and no plugin options yet. The package ships TypeScript types and is licensed under MPL-2.0.
npm install esbuild-plugin-remove-multiple-importsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use the plugin with esbuild in CommonJS to remove duplicate require statements from the output bundle.
Install esbuild-plugin-rdi and import from that package.
Use named import { rdiPlugin }.Pass an empty object or wait for documentation.
npm install esbuild-plugin-rdi and import from 'esbuild-plugin-rdi'
Use import { rdiPlugin } from 'esbuild-plugin-rdi'Run `npm install esbuild-plugin-rdi`
No dependency data recorded yet.