Package Exports
- esbuild-plugin-rdi
- esbuild-plugin-rdi/dist/index.js
- esbuild-plugin-rdi/dist/index.mjs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (esbuild-plugin-rdi) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Esbuild Plugin Remove Duplicate Imports 
ESBuild plugin to remove duplicate require statements from minified build.
Please consider starring this repository and sharing it with your friends.
Getting Started
Installation
$ pnpm add esbuild-plugin-rdior
$ npm install esbuild-plugin-rdior
$ yarn add esbuild-plugin-rdiIf you are using
monorepoorworkspaces, you can install this plugin to the root using-wor to a specific workspace using--filter your-packageor--scope your-packageforpnpmoryarnworkspaces, respectively.
Use with tsup
// tsup.config.ts or tsup.config.js
import { defineConfig } from "tsup";
import { rdiPlugin } from "esbuild-plugin-rdi";
export default defineConfig(options => ({
...
esbuildPlugins:[rdiPlugin()]
}));Use with esbuild
import { rdiPlugin } from "esbuild-plugin-rdi";
esbuild.build({
...
plugins: [rdiPlugin()],
});Plugin Options
Coming soon...
🤩 Don't forget to star this repo!
Please consider enrolling in our courses or sponsoring our work.
License
This library is licensed under the MPL-2.0 open-source license.
with 💖 by Mayank Kumar Chaudhari