Skip to content

Incorrect handling of path separators under Windows #2413

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

Closed
loewenheim opened this issue Mar 11, 2025 · 0 comments · Fixed by #2414
Closed

Incorrect handling of path separators under Windows #2413

loewenheim opened this issue Mar 11, 2025 · 0 comments · Fixed by #2414
Labels
Bug Issue type

Comments

@loewenheim
Copy link
Contributor

Trying to inject debug IDs into sourcemaps in a different directory (i.e. not the current directory) fails on Windows. The reason is inconsistent handling of path separators. Specifically, at

if self.sources.contains_key(&sourcemap_url) {
the sources contain URLs with slashes but sourcemap_url contains backslashes. This means that we don't find the sourcemap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issue type
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants