Closed moarcaffeine closed 4 years ago
Interesting that I haven't seen the bug you describe myself (maybe it's OS-specific or only manifests for projects in paths with capital letters, etc.). This change looks fine, but 2 comments:
includes
still needed, or is straightforward equality checking sufficient?require.resolve
is somewhat expensive, so can you pull it out into a variable to avoid computing it for each check? (if it does its own internal caching then nevermind)I can merge and push a new release tomorrow.
Current check is comparing names to resolved modules. Fix for issue #2.