How to fix problems with esbuild in Yarn
Aleksandr Ippatev
Posted on August 10, 2021
This plugin lets you use Yarn with esbuild. We use it in order to build Yarn itself!
- Add the plugin to your dependencies:
yarn add @yarnpkg/esbuild-plugin-pnp
- Reference it via your esbuild configuration build API only:
import {pnpPlugin} from '@yarnpkg/esbuild-plugin-pnp';
await build({
plugins: [pnpPlugin()],
// ...
});
💖 💪 🙅 🚩
Aleksandr Ippatev
Posted on August 10, 2021
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.