8000 feat(resolveModulePath): normalize windows paths by pi0 · Pull Request #14 · unjs/exsolve · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat(resolveModulePath): normalize windows paths #14

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

Merged
merged 6 commits into from
Feb 26, 2025
Merged

Conversation

pi0
Copy link
Member
@pi0 pi0 commented Feb 26, 2025

resolveModulePath uses fileURLToPath from Node.js which uses backslashes however it is very common that we need to normalize slashes and might forget.

This PR normalizes windows slashes in absolute paths returned by resolveModulePath but only on windows to reduce extra processing on other platforms.

@pi0 pi0 requested a review from danielroe February 26, 2025 14:20
@pi0 pi0 marked this pull request as ready for review February 26, 2025 14:30
pi0 and others added 3 commits February 26, 2025 15:34
@pi0 pi0 merged commit ca4c306 into main Feb 26, 2025
4 checks passed
@pi0 pi0 deleted the feat/normalize-win branch February 26, 2025 14:37
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
0