Open naeramarth7 opened 9 years ago
:+1: This is required to run any test coverage tool.
The easiest way would be to not remove lines, but instead comment or blank lines. An option could be passed like removeLines: false to keep sourcemaps.
+1
@Alphapage's suggestion with removeLines
would be the quickest fix
+1
Why the downvote @glen-84?
Because it notifies all subscribers, without adding any value.
You should instead add a reaction to the first comment.
@glen-84 Oh my... and to think I've learnt it just now. Thank you so much for pointing it out...
Couldn't find anyone complaining about this, so I had to open this Issue eventually, though I guess I'm not the only one struggling with this.
When
preprocess
ing scripts and styles withgulp
(orgrunt
- doesn't matter), I do also set up source maps. Howeverpreprocess
does not support them and therefore wrong line numbers (and even wrong files) are returned.My current workaround is initialising source maps _after _ preprocessing files. This does at least show me the code that is executed, however I can't connect my local files in the Chrome Dev Tools sources and have to search for the executed code by hand.