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

JavaScript: Teach resolveMainModule to try adding extensions. #2757

Merged

Conversation

max-schaefer
Copy link
Collaborator

If a package.json leaves off the extension of its main module, we previously weren't able to find it.

An evaluation on big-apps.slugs suggests a slight slowdown overall, but nothing dramatic, and I suspect it may not be real anyway: A2Z-F15 showed a 6% slowdown first, which turned into a 3% speedup on rerunning, so it may just have been worker load. Should have run with DPMs.

I doubt this affects many queries, so I didn't include a change note, but I'm happy to be convinced otherwise.

@max-schaefer max-schaefer added the JS label Feb 4, 2020
@max-schaefer max-schaefer requested a review from a team as a code owner February 4, 2020 09:42
@semmle-qlci semmle-qlci merged commit 4b89eee into github:master Feb 4, 2020
@max-schaefer max-schaefer deleted the js/resolveMainModule-extensions branch March 19, 2020 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants