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
Should emitFile take an importer? #3436
Comments
I do not believe this is true. An |
Right, but what will |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Ah, sorry, I totally misunderstood what you meant. You mean the second argument of |
Yes, being able to configure the importer would make sense when emitting a file. |
Yep! Sorry for explaining it badly. |
Please have a look if #3442 would work for you. |
Feature Use Case
Take plugin code like this:
Which converts
typescript:./whatever.ts
totypescript:/full/path/to/whatever.ts
, based on the importer.However, another plugin cannot invoke this via
emitFile
:The other plugin would have to understand the
typescript:
prefix, and handle resolving itself.Feature Proposal
The value of
importer
would be passed toresolveId
.The text was updated successfully, but these errors were encountered: