-
-
Notifications
You must be signed in to change notification settings - Fork 298
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(dev-server-rollup): fix rollup adapter virtual modules resolution for windows environments #2079
fix(dev-server-rollup): fix rollup adapter virtual modules resolution for windows environments #2079
Conversation
🦋 Changeset detectedLatest commit: ab27e50 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Remove temp patch when this PR is merged and a new version of the package is released: modernweb-dev/web#2079
@LarsDenBakker I would really appreciate a review on this one-liner PR. |
@peschee @43081j @Westbrook Apologies in advance for tagging more maintainers. I would appreciate if someone could take a look at this one-liner PR (bug fix for Windows). Highly appreciate your community efforts to maintain this project. |
i wouldn't actually solve this by stripping the null byte, that exists to tell the internals that its not a real path (i.e. it is virtual, handled by a plugin). in both unix and windows, it shouldn't be the bit that's tripping you up here is that:
is parsed as a valid URL - whoever wrote that condition you linked to probably hoped/assumed paths would fail to parse in both OSes. that should probably be modified to take into account that windows paths can result in valid URLs i suppose we could check that it is |
… for windows environments close modernweb-dev#2078
3f3f194
to
ab27e50
Compare
Thanks for the prompt response @43081j, I have adjusted the PR based off your suggestion. Could you have a look? It is still a one-liner after all. 🙂 |
@43081j I would appreciate if you or another maintainer could help me to get this small fix merged and released. How can I support? Thanks in advance. |
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.
makes sense to me.
probably need @daKmoR or @LarsDenBakker to approve/merge
meanwhile, if its possible to add a test for this case, that'd be super helpful
Sorry to ping again in here. |
Please refer to #2078 for full context.