Skip to content

[Help] runtime node_module loading in PnP mode #3369

Answered by merceyz
Eomm asked this question in Q&A
Discussion options

You must be logged in to vote

You should declare the fixtures/transport folder as a dependency using the link: protocol and let Yarn deal with the linking instead of doing symlinks manually
https://yarnpkg.com/features/protocols


I cannot find a way to say to [email protected] to do the fallback to the filesystem.

You can use pnpIgnorePatterns to exclude files from the PnP runtime or if you really want to skip the PnP hook and go directly to the native Node resolution you can.

require.resolve('foo', { plugnplay: false });

https://yarnpkg.com/configuration/yarnrc#pnpIgnorePatterns

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Eomm
Comment options

Answer selected by Eomm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3368 on August 31, 2021 16:49.