jaredhanson / jaredhanson/node-parent-require
Should it be module.parent.parent?
Open
- Dominant language
- JavaScript
- Stars
- 34
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
Currently, parent-require calls require in module.parent, which is the calling module.
However since it's "parent-require" I think it should be looking in the module's parent, which is module.parent.parent
Contributor guide
No contributing guide indexed for this repository
Research direction
Inspect the parent-require implementation and its existing test coverage to verify which module is used as the require context. Confirm whether resolving from the caller's parent matches the package's intended behavior, then update the behavior and tests so the expected parent-level module resolution is covered.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100