Add Yarn PnP support?
See original GitHub issueYarn v2 is moving away from node_modules to use Plug’n’Play instead. If I understand this all correctly, it would be very helpful if this package supported PnP-based resolution in addition to the traditional node_modules approach, since many other packages rely on this package for resolution as an alternative to require.resolve
. For reference:
Yarn Plug’n’Play
Thanks for all of your amazing open source work!
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Plug'n'Play | Yarn - Package Manager
Unveiled in September 2018, Plug'n'Play is an innovative installation strategy for Node. Based on prior work in other languages (for example autoload for...
Read more >yarn - Getting started with Plug n Play - w3resource
In this tutorial we gave you an overview of what Plug'n'Play is, as well as why you will need it.
Read more >Add support for yarn berry v3 with PnP as install strategy #693
I would like to be able to use this tool with yarn berry v2/v3 as my package manager and Plug'n'Play as the install...
Read more >get rid of node_modules with Yarn Plug'n'Play - Medium
A special resolver is used in order to help Node discovering where each dependency has been installed (under the Yarn cache folder). It...
Read more >What is Yarn PNP and Should You Use It? - Atomic Spin
If you're starting a new TypeScript (or JavaScript) project, you might be using a newer version of Yarn to manage your dependencies.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Facing this problem in https://github.com/vercel/vercel/discussions/4910. A solution via upgrading this package would be ideal, but if yarn 2 support is not planned, I guess that the community will need to find a workaround. Does anyone have any examples? Perhaps, there exists a package like
resolve-from-as-before-but-also-support-yarn-pnp
?Lets take that in https://github.com/yarnpkg/berry/issues/2031, no need to bother Sindre with this