summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar DawnOfMidnight <78233879+dawnofmidnight@users.noreply.github.com> 2021-06-30 09:57:32 -0400
committerGravatar GitHub <noreply@github.com> 2021-06-30 09:57:32 -0400
commit66d62fca37ece313dcbb967b835d1e205c229d8d (patch)
treead30ae70b41a7d2ea322748ae7746633c8f3250d
parentd1785d80c3c6f1756f6186f71d77aed1504676da (diff)
downloadastro-66d62fca37ece313dcbb967b835d1e205c229d8d.tar.gz
astro-66d62fca37ece313dcbb967b835d1e205c229d8d.tar.zst
astro-66d62fca37ece313dcbb967b835d1e205c229d8d.zip
Make it clear that Yarn 2 does support ESM when you disable Plug 'n Play (#584)
-rw-r--r--packages/astro/README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/astro/README.md b/packages/astro/README.md
index 568e11d6b..76e0966c8 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