How Yarn PnP solved the node_modules problem

  Рет қаралды 2,627

Yarokuk

Yarokuk

Күн бұрын

Let's see how Yarn Plug'n'Play (PnP) solved the node_modules problem.
The problem that we are talking about is the fact that node_modules result in too many files, they involve disk heavy operations, they are hard to de-duplicate for package managers (even with hoisting), and that with the Node resolution algorithm there is no concept of packages.
This is where Yarn Plug'n'Play comes to the rescue. It is a new install mode introduced in Yarn Berry (i.e., modern versions of Yarn starting from Yarn v2).
We will also see the benefits and caveats that come with Yarn PnP.
00:00 Installs with node_modules
02:26 The node_modules problem
06:31 Yarn PnP to the rescue
10:54 Yarn PnP benefits
15:52 Yarn PnP caveats
20:06 Conclusion

Пікірлер: 4
@supernova82
@supernova82 Жыл бұрын
Thank you! Clear and concise. That is precisely what I was looking for.
@yancoltro
@yancoltro Жыл бұрын
greate explanation, i was looking for this answer and I can find it in a very didactic way in your video. thanks!
@richardhunter132
@richardhunter132 11 ай бұрын
I don't understand how Node itself knows about the .pnp.cjs file at runtime. how is Node's algorithm of searching through node_modules folders somehow bypassed?
@vitaly8626
@vitaly8626 Жыл бұрын
helpful video, thank you
How Yarn Actually Works
6:57
Yarokuk
Рет қаралды 504
I Spent 100 Hours Inside The Pyramids!
21:43
MrBeast
Рет қаралды 49 МЛН
Their Boat Engine Fell Off
0:13
Newsflare
Рет қаралды 15 МЛН
Every team from the Bracket Buster! Who ya got? 😏
0:53
FailArmy Shorts
Рет қаралды 13 МЛН
Upgrade Yarn from Yarn 1 to Yarn 4 with these simple steps
13:56
Cooking & Coding
Рет қаралды 261
Coding a Web Server in 25 Lines - Computerphile
17:49
Computerphile
Рет қаралды 363 М.
Linux Audio Explained (ALSA vs PulseAudio vs JACK vs Pipewire Explained)
18:52
Tony Tascioglu (TechnoTony)
Рет қаралды 160 М.
C++ Super Optimization: 1000X Faster
15:33
Dave's Garage
Рет қаралды 338 М.
Npm workspaces tutorial
12:33
Concise Developer
Рет қаралды 12 М.
Reinforcement Learning - My Algorithm vs State of the Art
19:32
Pezzza's Work
Рет қаралды 156 М.
Their Boat Engine Fell Off
0:13
Newsflare
Рет қаралды 15 МЛН