Yarn Holds It All Together
I find it a little hard to get my head around what some of these JavaScript tools are supposed to be doing, in part because they can be a little abstract. Instead, I find it easier to discuss what problems esbuild and its related tools are solving for us. As far as our Rails app is concerned, we’re juggling two external pieces of software that solve related problems for our client-side code: Yarn and esbuild.
The problem Yarn is designed to solve is: “What version of all my dependent modules does my program rely on?” Yarn is for JavaScript and npm modules what Bundler is for Ruby gems. All the JavaScript packaging tools supported by jsbundling—esbuild, rollup, and webpack—use Yarn and the package.json file to manage ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access