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 scoped module detection logic & add regression test #763

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

Conversation

mungodewar
Copy link

Bug description:

When loading a module that has the form @org/module/path within server.js OC framework fails to identify that this module is installed and defined within package.json. Note that there is no problem with module imports of the form: module/path.

Solution:

In this PR I add a very similar block to specifically deal with scoped imports. In this block the module name is detected by selecting from the second / appearing in the request/dep.

I've also included a test to ensure that this new code works as expected.

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.

1 participant