Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: searching outside folder unnecessarily #91

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Julusian
Copy link
Contributor

@Julusian Julusian commented Aug 29, 2023

I found an issue where an electron project which happened to be inside another nodejs project was bundling dependencies from the parent directory unnecessarily electron-userland/electron-builder#7745

This appears to be happening because resolveDependency can return nil when either the dependency is unresolved, or when the dependency has already been resolved. Dependencies which had already been resolved were then being re-resolved with the correct path to them being rejected, which resulted in it looking in the parent directory for this 'unresolved' dependency, causing my issue

This is not the prettiest solution, but as this repository appears unmaintained, I expect this will only serve as a reference for others

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants