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
-
The following is my understanding from the documentation on the yarnrc file on the
pnpMode
andpnpFallbackMode
config params:The config param
pnpMode
will 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
pnpFallbackMode
comes 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
pnpFallbackMode
only applies whenpnpMode
is set toloose
, I would find it quite strange that this does not seem to be documented explicitly anywhereIf
pnpFallbackMode
set tonone
doesn't allow packages to require a dependency they don't list as a dependency themselves, that's basically the same thing aspnpMode
set tostrict
, making this value redundantWhy does
pnpFallbackMode
even have a default value, if a value ofstrict
forpnpMode
would not even make it relevant ? (I guess this one could make sense if it was documented thatpnpFallbackMode
is only relevant forpnpMode
ofloose
)--
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