esbuild-plugin-pnp

0.3.0 • Public • Published

esbuild-plugin-pnp

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

Usage

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);
});

Package Sidebar

Install

npm i esbuild-plugin-pnp

Weekly Downloads

1

Version

0.3.0

License

MIT

Unpacked Size

3.4 kB

Total Files

4

Last publish

Collaborators

  • eigilsagafos