An outline for building modern & performant JavaScript bundles w/ esbuild & yarn plug-n-play
npm i yarn@2.0.0-rc.27 -g
yarn install # sometimes yarn hangs after completion
npm start
open http://localhost:3000
- Uses 100% ESM for both Node & browser code
- Features a plugin that automatically externalizes dependencies that match a particular pattern
- Automatically add modulepreload links for dependencies that match a particular pattern
- Uses a
berry
release of Yarn 2