Skip to content
This repository has been archived by the owner on Sep 23, 2021. It is now read-only.

clarify use of path for sidedoor.get #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AndrewSouthpaw
Copy link

If using a path to locate the module, sidedoor.get currently requires the module pathname to be written relative from the location of sidedoor.js. For example, if sidedoor is installed via npm, then a module at the root project folder would need to be referenced this way: sidedoor.get('../../../my-module'). This is because require.resolve is called from within that file.

This issue can be avoided by simply passing in an absolute path. The distinction is clarified in the README and an example provided on how to pass an absolute path.

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

Successfully merging this pull request may close these issues.

None yet

1 participant