Skip to content

Incorrect handling of path separators under Windows #2413

@loewenheim

Description

@loewenheim

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugIssue type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions