From 66d62fca37ece313dcbb967b835d1e205c229d8d Mon Sep 17 00:00:00 2001 From: DawnOfMidnight <78233879+dawnofmidnight@users.noreply.github.com> Date: Wed, 30 Jun 2021 09:57:32 -0400 Subject: [PATCH] Make it clear that Yarn 2 does support ESM when you disable Plug 'n Play (#584) --- packages/astro/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/astro/README.md b/packages/astro/README.md index 568e11d6b2..76e0966c8e 100644 --- a/packages/astro/README.md +++ b/packages/astro/README.md @@ -35,7 +35,7 @@ shamefully-hoist = true ### Yarn -[Yarn](https://yarnpkg.com/) works as a package manager in Astro apps. However, __Yarn 2__ changes how module resolution works in Node apps and doesn't support modules written in ESM at the moment. Since Astro is written entirely in ESM, you can't use Yarn 2 in Astro apps. We'll continue to track Yarn 2 as they fix these core bugs. +[Yarn](https://yarnpkg.com/) works as a package manager in Astro apps. However, __Yarn 2__'s Plug'n'Play feature, aka 'pnp', changes how module resolution works in Node apps and doesn't support modules written in ESM at the moment. Since Astro is written entirely in ESM, you can't use the pnp feature. in Astro apps. We'll continue to track this feature as they fix these core bugs. However, you can disable pnp by adding `nodeLinker: 'node-modules'` to your `.yarnrc.yml`, which will make Yarn 2 compatible with Astro. ### 🚀 Build & Deployment