-
Notifications
You must be signed in to change notification settings - Fork 26
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
Is pnpm supported? #84
Comments
Hello! I had not heard of pnpm until a week ago, and all I know about it is that it dedupes all installations across a filesystem, so I'm disappointed but not surprised at all that quibble doesn't work. Do you experience this only with |
(cc/ @giltayar ) |
Only with I have had the same problem in another project where my code was supposed to find what you wanted to require from your file. This was with To find the exact path, you can use this lovely Stability 1 util: import.meta.resolve Problem is, you need the url to the file where I am replacing from. So I probably would need to pass Following my stack trace, the error was in |
Thank you for doing this additional legwork. The |
NP. I can do even more legwork if someone could explain what the purpose of |
Update: I think I have solved the problem and will upload it as a new module soon. Stay tuned. |
Here it is: https://github.com/TheLudd/fibble I made a new library heavily inspired by how quibble did the resolve/load thing for esm modules. The library I made only targets es modules. It is also much faster than quibble, there seemed to be a lot of recursive calling being done in the loaders. Anyway, I managed to use nodes own algorithm to resolve files and a loader hack in order to not need to pass in the url from the file requesting. Check it out and come with feedback if you want to :) Ps @searls. This is the second time I copy one of your libs to make a test utility :) |
@TheLudd just looked at your code, and what you're doing is using Unfortunately, So, unfortunately, I can't incorporate your code back into quibble. But! If you could reproduce the problem in an example git repository so that I can check it out, I will definitely look into it and maybe fix the bug so that pnpm will also be supported. |
Hi. I think I will continue to maintain
Reproducing the problem is very hard. I did try to do it but I think it requires a specific set of circumstances that are not easy to reproduce but likely to happen in a larger project. |
I have a project using
replaceEsm
that works fine usingyarn
. But when I switch topnpm
it says thatquibble
cannot find one of my modules.I assume this is due to the different
node_modules
structure ofpnpm
.Is this a known issue? I am happy to supply more info about
pnpm
if you are unfamiliar with that package manager.The text was updated successfully, but these errors were encountered: