Re:Yarn 4.0
by benced on Monday October 23, 2023 @12:27PM
(#37987960)
Yarn v2 had support for just plain node modules, no PNP stuff but very few no about it even though it’s easy to setup and so much better than v1.
[ Parent
| on HN ]
Re:Yarn 4.0
by doodlesdev on Monday October 23, 2023 @12:32PM
(#37988033)
It also has support for a pnpm-style linker which performs better than node-modules but is much less likely to break libraries.
Re:Yarn 4.0
by madeofpalk on Monday October 23, 2023 @04:04PM
(#37990806)
Using the yarn pnpm linker seems like the worst of all options. It's clear it's not where the yarn team's focus is, not many people use it (relatively) so you're more likely to run into an undiscovered problem, and then it's still significantly slower than actual pnpm.
I stayed away from yarn@2+ for years, but finally switched to 3.2.1 when I started working on a monorepo with nested workspaces.
I've actually been really happy with 3.2.1. It and wireit together make it super easy to work on a project that spans various libraries/repos. PnP was a compatibility nightmare, but node-modules mode works.