Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sxzz/esbuild-plugin-transform

Pipe transformation plugins for esbuild.
https://github.com/sxzz/esbuild-plugin-transform

Last synced: about 2 months ago
JSON representation

Pipe transformation plugins for esbuild.

Awesome Lists containing this project

README

        

# esbuild-plugin-transform [![npm](https://img.shields.io/npm/v/esbuild-plugin-transform.svg)](https://npmjs.com/package/esbuild-plugin-transform)

[![Unit Test](https://github.com/sxzz/esbuild-plugin-transform/actions/workflows/unit-test.yml/badge.svg)](https://github.com/sxzz/esbuild-plugin-transform/actions/workflows/unit-test.yml)

Pipe transformation plugins for [esbuild](https://esbuild.github.io/).
Compatible with existing esbuild plugins.

Related issue: https://github.com/evanw/esbuild/issues/1902

## Install

```bash
npm i esbuild-plugin-transform
```

## Usage

```ts
import { build } from 'esbuild'
import { Transform } from 'esbuild-plugin-transform'

const plugins = [
// ...
]
build({
// ...
plugins: [
Transform({
plugins,
}),
],
})
```

## Sponsors





## Credits

Thanks to [esbuild-plugin-pipe](https://github.com/nativew/esbuild-plugin-pipe) for the inspiration.

## License

[MIT](./LICENSE) License © 2022-PRESENT [三咲智子](https://github.com/sxzz)