-
-
Notifications
You must be signed in to change notification settings - Fork 184
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
resolve result is inconsistent with require.resolve if windows virtual drive is used #283
Comments
Which version of resolve are you using? v1 is "latest", but there's a v2 prerelease that's worth trying as well. It's possible that the |
The result is the same for v1.22.0 and v2.0.0-next.3. v1.22.0
v2.0.0-next.3
|
It seems that the Line 9 in 4e183d7
Line 9 in 4e183d7
Node's loader uses the In the test scenario these functions give the following result:
As I see |
If the native function gives the wrong answer on windows, then we could certainly avoid using it only on windows. |
Fixed by #284. |
@ljharb, thank you! Is it possible to publish a new patch (v1.22.1) with the fix? |
I will do so this week. |
Hello @ljharb, any updates? |
v1.22.1 is released. |
I'm researching the rollup/rollup#4260 issue and found that the
resolve
and therequire.resolve
results differ in windows virtual drive (subst).To reproduce run the following
index.js
script:in the following way:
Output:
The text was updated successfully, but these errors were encountered: