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

exclude node modules from user workspace resolution #687

Conversation

thescientist13
Copy link
Member

@thescientist13 thescientist13 commented Aug 6, 2021

Related Issue

resolves #686 (comment)

Summary of Changes

  1. Ignore resolving node_modules paths from user workspace resolution, leading to "false" positives

For example in the test case, if we didn't have this fix, requesting both files would always return the contents of src/lit-html.js.

TODO

  1. Add a test case to cover this scenario

@thescientist13 thescientist13 added bug Something isn't working P0 Critical issue that should get addressed ASAP CLI todos labels Aug 6, 2021
@thescientist13 thescientist13 self-assigned this Aug 6, 2021
@thescientist13 thescientist13 removed their assignment Aug 6, 2021
@thescientist13
Copy link
Member Author

Created a discussion to further refine how this resolution can work going forward - #691

@thescientist13 thescientist13 merged commit a8f38e6 into master Aug 8, 2021
@thescientist13 thescientist13 deleted the bug/issue-686-avoid-mapping-node-modules-to-user-workspace branch August 8, 2021 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CLI P0 Critical issue that should get addressed ASAP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

node modules paths are being resolved to "matching" user workspace paths causing broken package loading
1 participant