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: slash some path for windows #48

Merged
merged 4 commits into from Aug 16, 2022
Merged

fix: slash some path for windows #48

merged 4 commits into from Aug 16, 2022

Conversation

markthree
Copy link
Contributor

@markthree markthree commented Aug 10, 2022

The first time we add a path, we use "resolve" of "pathe", which will "slash" the path。
image

However, when the page is updated later, the "slash" is not used, which will cause the problem of update loss in windows.

Copy link
Owner

@posva posva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

src/core/context.ts Outdated Show resolved Hide resolved
src/core/context.ts Outdated Show resolved Hide resolved
Copy link
Owner

@posva posva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you allow edits by maintainers in this PR, please? (you should always check that checkbox 😄 )

@@ -41,7 +42,7 @@ export class RoutesFolderWatcher {
return
}
handler({
filePath,
filePath: normalize(filePath),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's move filePath = normalize(filePath) up so it's passed to everything

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@posva OK, I'll deal with the problem after work。

@markthree
Copy link
Contributor Author

Can you allow edits by maintainers in this PR, please? (you should always check that checkbox smile )

image

Sorry, I didn't pay attention to this, it has been opened

@posva
Copy link
Owner

posva commented Aug 16, 2022

weird, I still can't push even after you ticked the checkbox

@markthree
Copy link
Contributor Author

I also feel weird 😂. I have submitted changes. Thank you for your patience and teaching. I have learned a lot。

@posva posva merged commit bc152e3 into posva:main Aug 16, 2022
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.

None yet

2 participants