Yarn 3.0 native caching

Hi, yarn 3.0 has been announced for a while now. Basically it’s yarn berry (2.0) with better compatibility to linking node_modules, and implement esbuild for faster dependencies install time. As I read forums so far, netlify build seems not to natively caching for yarn 2.0 just yet and I cannot manually make cache plugin myself either because yarn install process is happened even before Netlify Build begins.

So, might be cool if netlify detects configuration for yarn berry (i.e. is .yarn/ detected). if so, then cache both .yarn/cache and node_modules

interesting, @rayriffy ! i have passed this on, and if we end up implementing this, we’ll be sure to let you know!