-
I have confusion in this symlinked-node-modules-structure article, If node ignores symlinks, why require('bar') from foo don't look up in upper folder .pnpm/node_modules(which don't exist), instead resolve with ./pnpm/bar@1.0.0/node_modules/bar? |
Beta Was this translation helpful? Give feedback.
Answered by
zkochan
Jul 28, 2024
Replies: 1 comment 1 reply
-
It doesn't ignore symlinks when searching for dependencies. It will resolve a dependency from a symlink. But the location of the resolved dependency won't be the symlink but the directory that the symlink points to. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ominus3
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It doesn't ignore symlinks when searching for dependencies. It will resolve a dependency from a symlink. But the location of the resolved dependency won't be the symlink but the directory that the symlink points to.