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 logicin my customTransformer, it couldn't be done now. Because only the filename was passed to typescript.