https://github.com/shiftx/esbuild-plugin-pnp
https://github.com/shiftx/esbuild-plugin-pnp
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/shiftx/esbuild-plugin-pnp
- Owner: shiftx
- License: mit
- Created: 2020-11-04T07:49:38.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-11T20:59:11.000Z (over 5 years ago)
- Last Synced: 2025-04-20T12:14:27.558Z (about 1 year ago)
- Language: JavaScript
- Size: 1.35 MB
- Stars: 5
- Watchers: 4
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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);
});
```