Skip to content

Conversation

Charlie-XIAO
Copy link

@Charlie-XIAO Charlie-XIAO commented Aug 26, 2025

Fixes #285.

#285 (comment) is right, currently the native version works for Windows, but if installed from npm, the wasm target is used which does not work for Windows.

This PR adds a method to_unix_path_on_windows that converts windows-style path to unix-style path only if on windows platform. For browsers, this uses navigator.userAgent though I think these cases will not be hit. For CLI this uses process.platform. The Normalize::normalize method now needs to take a reference to Environment to be able to call this method.

@Charlie-XIAO Charlie-XIAO marked this pull request as ready for review August 26, 2025 05:17
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.

Handle Windows paths

1 participant