-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
There was a problem hiding this 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 😄 )
src/core/RoutesFolderWatcher.ts
Outdated
@@ -41,7 +42,7 @@ export class RoutesFolderWatcher { | |||
return | |||
} | |||
handler({ | |||
filePath, | |||
filePath: normalize(filePath), |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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。
weird, I still can't push even after you ticked the checkbox |
I also feel weird 😂. I have submitted changes. Thank you for your patience and teaching. I have learned a lot。 |
The first time we add a path, we use "resolve" of "pathe", which will "slash" the path。
However, when the page is updated later, the "slash" is not used, which will cause the problem of update loss in windows.