Skip to content

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