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
How to get the current sourcemap in the transform hook ? #2983
Comments
So what you need is the combined source maps of all previous plugins. Unfortunately at the moment, this is not available. The reason is that there was no use yet, and it would be costly to calculate it by default. This is how sourcemaps work in Rollup:
That being said, I think having a good way to run coverage in Rollup would be really nice, I would be very interested in having a good coverage solution for Rollups sources as well. So maybe we could find a way to request a pre-collapsed source-map from a transform hook? For instance we could try to add a |
@lukastaegert Thank you, it's going to solve my issue. |
Don't thank me yet, it still needs to be implemented... |
I implemented an
istanbul
plugin usingistanbul-lib-instrument
, But theistanbul-lib-instrument
require theinputSourceMap
to maps the not instrumented code back to it's original formHow can i get the current sourcemap in the transform hook ?
istanbul.js
rollup config
rollup-plugin-jscc
wellThe text was updated successfully, but these errors were encountered: