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

https://github.com/shiftx/esbuild-plugin-pnp


https://github.com/shiftx/esbuild-plugin-pnp

Last synced: 11 months ago
JSON representation

Awesome Lists containing this project

README

          

# esbuild-plugin-pnp

Experimental support for using esbuild with yarn pnp.
Tested with esbuild 0.8.1

## Usage

```js
const { build } = require("esbuild");
const pnpPlugin = require("esbuild-plugin-pnp");

build({
entryPoints: ["index.ts"],
bundle: true,
outfile: "out.js",
plugins: [pnpPlugin()],
}).catch(err => {
console.log(err);
process.exit(1);
});
```