Just wondering, if there is a package with circular/cyclic dependency, does npm handle that? How? I have googled but couldn't find very useful results.
I can think of two kinds of problems here:
Circular dependency with same version:
A->B,B->C,C->ADoes npm build the dependency like this? (Only my guess, didn't find any circular dependency to actually test on)
[email protected] └─┬ [email protected] └─┬ [email protected] └── [email protected] (deduped)Circular dependency with different version:
[email protected]>B,B->C,C->A@^1.0.0, I cannot even guess what would happen if such things exist?