# esbuild-plugin-ignore

> Ignore plugin for esbuild

Latest version **1.1.1** (published 2021-12-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install esbuild-plugin-ignore
pnpm add esbuild-plugin-ignore
yarn add esbuild-plugin-ignore
bun add esbuild-plugin-ignore
```

## Health

**Score 28/100 (F)** — status: abandoned.

Positive: has types package; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2021-12-21 |
| First published | 2021-01-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/esbuild-plugin-ignore) |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | Kivol |
| Maintainers | knowre |
| Keywords | esbuild, plugin, ignorePlugin |

## Links

- npm: https://www.npmjs.com/package/esbuild-plugin-ignore
- Repository: https://github.com/Knowre-Dev/esbuild-plugin-ignore
- Homepage: https://github.com/Knowre-Dev/esbuild-plugin-ignore#readme
- Issues: https://github.com/Knowre-Dev/esbuild-plugin-ignore/issues
- npm.io page: https://npm.io/package/esbuild-plugin-ignore

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2021-12-21
- 1.1.0 — 2021-01-20
- 1.0.0 — 2021-01-19

## README

# esbuild-plugin-ignore
Plugin to ignore some certain dependencies from bundling, for [esbuild](https://esbuild.github.io/). It's behavior is much same as the `IgnorePlugin` from webpack(https://webpack.js.org/plugins/ignore-plugin/).

## Usage
```
{
	// Other esbuild options,
	plugins: [
		ignorePlugin([
			{
				resourceRegExp: /pg-native$/,
				contextRegExp: /node_modules\/sequelize|node_modules\/pg/
			},
			{
				resourceRegExp: /tedious|sqlite3|mariadb$/,
				contextRegExp: /node_modules\/sequelize/
			}
		])
	]
}
```

* It's the same as the Webpack 5's plugin of the same name.
* You can refer to [example](./example) directory for usage.
* It supports both ESM and CommonJS.

---
_Source: https://npm.io/package/esbuild-plugin-ignore · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
