Skip to content

Conversation

zhxiaoyu
Copy link

  1. Use commands through cmd.exe /C in Windows to ensures environment variables are loaded automatically
  2. Explicitly specify bash as shell for all runner because powershell doesn't support the && operator
  3. Handle the difference between "\n" and "\r\n" on Linux and Windows
  4. Handle the difference between path symbols on Linux and Windows

@Wulf
Copy link
Owner

Wulf commented Jul 27, 2025

@zhxiaoyu thank you very much for this. I'd like to ask you one last thing before we merge this in:

Does this solution work on windows?

If so, I think it can also help us avoid any required path.resolve(__dirname, ...) for end-users in their vite config files. If not, I guess we'll have to document this caveat for windows users.

@zhxiaoyu
Copy link
Author

@zhxiaoyu thank you very much for this. I'd like to ask you one last thing before we merge this in:

Does this solution work on windows?

If so, I think it can also help us avoid any required path.resolve(__dirname, ...) for end-users in their vite config files. If not, I guess we'll have to document this caveat for windows users.

Hi @Wulf , this works on windows by my test.

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