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(node): require.resolve - fallback to global cache when bare specifier from paths not found #23618

Merged

Conversation

dsherret
Copy link
Member

@dsherret dsherret commented Apr 30, 2024

Part of #22607 (probably closes it, but I haven't done thorough testing)

Makes it so that require.resolve with paths specified will fallback to using the global cache when the paths can't be found when using a global cache (not when using a node_modules folder)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if this will potentially break something though.....

Copy link
Member

@littledivy littledivy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. the fix makes sense

@dsherret dsherret merged commit 56bf634 into denoland:main May 1, 2024
17 checks passed
@dsherret dsherret deleted the fix_require_fallback_bare_specifiers branch May 1, 2024 03:41
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.

2 participants