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
[plugin-babel] should works with query param in path #500
Comments
Thanks for opening an issue. Citing the issue template:
We cannot make this any clearer. Please add a reproduction and we'll be happy to triage further. |
Seriously, follow the template. Don't modify it. |
I am very sorry! I have updated the issue. Can you reopen it? @shellscape |
Thank you |
Out of curiosity - why this query is there? What it is used for? I would love to know more about the use case here. |
I believe it is a rather interesting pattern of passing parameters to plugins that handle imports to allow per-import configuration. The big advantage is that the source code can still be easily run unmodified in a browser as the import is still a valid URL. |
In my app code, I can import thing with this special effect:
I have a plugin to recoginze this query and do special transform to some modules:
|
We could allow this - I assume that we should transform each such request independently, right? Caching based on a filename alone is not sufficient in this case. @csr632 would you like to work on this one? |
I will work on it in this weekend. |
That's great, can't wait. Please ping me in the PR thread once you do it - I will try to review asap. |
Hey folks. This issue hasn't received any traction for 60 days, so we're going to close this for housekeeping. If this is still an ongoing issue, please do consider contributing a Pull Request to resolve it. Further discussion is always welcome even with the issue closed. If anything actionable is posted in the comments, we'll consider reopening it. ⓘ |
Expected Behavior
The plugin should accept module id with query param in it.
The motivation is similar to how node-resolve plugin support hash and query.
Actual Behavior
It doesn't recognize
.ts
extension because the module id isfile.ts?query=asd
.Additional Information
In my case, when I am doing some special import, I store some infomation in the query, so that my plugin can treat it differently.
The text was updated successfully, but these errors were encountered: