preprocess icon indicating copy to clipboard operation
preprocess copied to clipboard

Missing Support for Source Maps

Open naeramarth7 opened this issue 10 years ago • 6 comments

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 preprocessing scripts and styles with gulp (or grunt - doesn't matter), I do also set up source maps. However preprocess does not support them and therefore wrong line numbers (and even wrong files) are returned.

screen shot 2015-06-05 at 10 13 47 pm

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.

naeramarth7 avatar Jun 05 '15 20:06 naeramarth7

:+1: This is required to run any test coverage tool.

Frizi avatar Jun 16 '15 15:06 Frizi

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.

Alphapage avatar Feb 22 '16 21:02 Alphapage

+1

@Alphapage's suggestion with removeLines would be the quickest fix

sheinzle avatar Mar 21 '16 17:03 sheinzle

+1

Izhaki avatar Sep 22 '17 09:09 Izhaki

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 avatar Sep 22 '17 18:09 glen-84

@glen-84 Oh my... and to think I've learnt it just now. Thank you so much for pointing it out...

Izhaki avatar Sep 22 '17 20:09 Izhaki