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
{ external: false } in resolveId passed incorrectly #2811
Comments
There are some issues around this so I am not sure which one you refer to. I list the ones that I stumbled upon, please note if the one you refer to is among them (noting down an "expected behaviour"/"actual behaviour" as suggested by the issue template is really helpful!).
|
Yes it seems it is both issues - I hit the |
I finally posted a fix at #2829. Would be nice if you could have a look as I also added a new plugin context function with the prospect of deprecating |
When returning
{ id, external: true }
from theresolveId
, everything works perfectly as expected.I was trying to work to a single function shape though somewhat in the name of performance, but when passing
{ id, external: false }
this seems to propogate as-is to theload
hook and the rest of the pipeline.It should be a simple one-liner to fix along the lines of
resolved = resolved.external === false ? resolved.id : resolved
sort of thing.Sorry I can't PR right now too :)
The text was updated successfully, but these errors were encountered: