How are "pnpMode" and "pnpFallbackMode" related ? #2462
Unanswered
Robin-Hoodie
asked this question in
Q&A
Replies: 2 comments 6 replies
-
|
|
Beta Was this translation helpful? Give feedback.
6 replies
-
|
To put it differently |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The following is my understanding from the documentation on the yarnrc file on the
pnpModeandpnpFallbackModeconfig params:The config param
pnpModewill determine if packages are ever allowed to require dependencies that they don't list as a dependency themselves.For "loose" mode is where the config param
pnpFallbackModecomes into play, which will determine which kind of packages are allowed to require dependencies they don't list as a dependency themselves:I'm assuming I'm wrong in my understanding here, as a few things don't make sense:
If
pnpFallbackModeonly applies whenpnpModeis set toloose, I would find it quite strange that this does not seem to be documented explicitly anywhereIf
pnpFallbackModeset tononedoesn't allow packages to require a dependency they don't list as a dependency themselves, that's basically the same thing aspnpModeset tostrict, making this value redundantWhy does
pnpFallbackModeeven have a default value, if a value ofstrictforpnpModewould not even make it relevant ? (I guess this one could make sense if it was documented thatpnpFallbackModeis only relevant forpnpModeofloose)--
Just to clarify, I am aware of the extra documentation on PnP loose mode and PnPFallbackMode, though that doesn't explain my points above
Beta Was this translation helpful? Give feedback.
All reactions