Use source maps
See original GitHub issueHi,
I don’t really understand how this package works so I apologise in advance if this isn’t the right place to make this question.
On my project, the code that reaches the browser is processed by babel. The final code has source maps that google chrome uses to show the original source when I open the dev tools. However the puppeteer coverage information of a file shows the processed source code, not the original. Is there a way to convert the text
and ranges
fields of the coverage object to the original source and line numbers?
Thank you for your antention
Issue Analytics
- State:
- Created 5 years ago
- Reactions:15
- Comments:20 (3 by maintainers)
Top Results From Across the Web
Introduction to JavaScript Source Maps - Chrome Developers
Source maps are a very powerful utility in a developer's tool set. It's super useful to be able to keep your web app...
Read more >Should I Use Source Maps in Production? | CSS-Tricks
It's a valid question. A “source map” is a special file that connects a minified/uglified version of an asset (CSS or JavaScript) to...
Read more >WTF is a Source Map - Schneems
What is a source map? At its core, a source map allows a browser to map the source of an asset to the...
Read more >What are Javascript Source Maps? | Rapid7 Blog
Source maps are a new addition to the developer toolbox. Although the source maps spec lives in Google docs (no kidding), they're supported...
Read more >JavaScript Debugging with Sourcemaps - TrackJS
A sourcemap is a mapping between the generated/transpiled/minified JavaScript file and one or more original source files. The main purpose of sourcemaps is...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@stevenvachon the newest version of
v8-to-istanbul
which is the library that remaps coverage fromV8
format to Istanbul format now supportssource-maps
, perhaps try experimenting with this?Without this, the tool is not really useable unfortunately if you’re using any bundler like webpack 😕