Skip to content
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

🩹 fix(patch): windows bootstrap path resolution #2636

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kellymears
Copy link
Member

@kellymears kellymears commented Aug 12, 2024

First error to fix in order to provide native support for Windows. We have to start here because it happens during bootstrapping, so not much of the application can even run.

A similar fix may also need to be applied to @roots/bud-framework/module and @roots/fs. Not sure.

From vite

They are calling path.posix.normalize, which is the same as normalize from node:path/posix:

https://github.com/vitejs/vite/blob/33d3cca78607e14e4d0b13e7012d065a94d184b1/packages/vite/src/node/utils.ts#L62-L64

Do we also need to prepend the / in windows? Don't know yet. See:

https://github.com/vitejs/vite/blob/33d3cca78607e14e4d0b13e7012d065a94d184b1/packages/vite/src/node/utils.ts#L63C30-L63C33

Type of change

PATCH: backwards compatible change

@github-actions github-actions bot added @roots/bud-framework internal repository specific PR or issue labels Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal repository specific PR or issue @roots/bud-framework
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant