Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

esbuild-plugin-remove-duplicate-imports

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esbuild-plugin-remove-duplicate-imports

ESBuild plugin to remove duplicate require statements from minified build.

  • 0.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Esbuild Plugin Remove Duplicate Imports

test Maintainability codecov Version Downloads npm bundle size Gitpod ready-to-code

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-rdi

or

$ npm install esbuild-plugin-rdi

or

$ yarn add esbuild-plugin-rdi

If you are using monorepo or workspaces, you can install this plugin to the root using -w or to a specific workspace using --filter your-package or --scope your-package for pnpm or yarn workspaces, 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.

Alt

License

This library is licensed under the MPL-2.0 open-source license.


with 💖 by Mayank Kumar Chaudhari

Keywords

FAQs

Package last updated on 19 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc