-
-
Notifications
You must be signed in to change notification settings - Fork 431
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
Pass raw path to transpileModule so that customTransformers could access the raw path #835
Conversation
Could you provide an example of why this is useful / what possibilities this unblocks please? Also, why And, would the change you are suggesting change the usage for other people already relying on custom transformers? Would this be a breaking change? |
Yes, I want to write a typescript transformer plugin like https://github.com/emotion-js/emotion/tree/master/packages/babel-plugin-emotion#sourcemap, and I must inject
in
Maybe. It would change the value of |
Cool
Sorry I don't follow your meaning here. Could you expand on this please? |
let me explain it in this way. |
Ah I see! So this will align the behaviour of If that's the case I kind of consider this a bugfix and I think we should take it. |
Yes, right |
align the behavior of `transpileOnly: true` and `transpileOnly: false`
092e560
to
9aa423a
Compare
Could you update the |
updated |
Thanks - quite busy right now but I'll try to put a release out soon. |
thank you😁 |
If I want write some
path based logic
in my customTransformer, it couldn't be done now. Because only the filename was passed to typescript.