-
Notifications
You must be signed in to change notification settings - Fork 58
Fix aliasing with path.resolve() issue on windows #22
Fix aliasing with path.resolve() issue on windows #22
Conversation
added 3 test cases: - alias with path.resolve() with file without extention - alias with windows absolute path - alias with path.resolve() with file with extention
passes test cases: - Platform path.resolve('file-without-extension') aliasing - Windows absolute path aliasing - Platform path.resolve('file-with.ext') aliasing
test/index.js
Outdated
@@ -1,10 +1,11 @@ | |||
import test from 'ava'; | |||
import { posix as path } from 'path'; | |||
import paltformPath, { posix as path } from 'path'; |
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.
Shouldn't this be platformPath
?
I'm not sure Let know what you think @mhhegazy |
@frostney I agree this will be more clear |
@frostney please rerun checks again; it was broken because of resolved issue on appveyor. we should resolve this issue as soon as possible because it break build of many projects on windows |
@mhhegazy Is there any reason why this fix cannot be pushed? |
@ovirovkin do mean merged? I don't know! I have tested it in cases that used in react and vue and it worked as desired and this only pull request that resolve this problem. |
@ovirovkin is it react build on windows or other issue?
|
@mhhegazy Yes, it's react build on windows issue. I fixed build as you suggested here: #9540 but it's causing 23 failed tests. So I was wondered can this be merged, to fix an issue properly. I don't know why they are not failing for you, also I have only 1465 tests total and you have 2559 on a screenshots. |
you can try to clone PR repo (https://github.com/mhhegazy/react.git) and build it and tell me what is the result of build and test. |
thanks all, LGTM. Will cut a new release soon |
@mhhegazy Thanks for your help, your branch looks better. But there is still 2 suits are failing. Results:
|
I will take a look at it, |
@mhhegazy Thank you, I really appreciate your help. |
@ovirovkin you are welcome, I'll get into testing in next weekend, |
@Rich-Harris Could you take a look?
Added 3 test cases:
This fix:
And Closes #11