Skip to content
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

Missing Support for Source Maps #59

Open
naeramarth7 opened this issue Jun 5, 2015 · 6 comments
Open

Missing Support for Source Maps #59

naeramarth7 opened this issue Jun 5, 2015 · 6 comments

Comments

@naeramarth7
Copy link

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.

@Frizi
Copy link
Contributor

Frizi commented Jun 16, 2015

👍 This is required to run any test coverage tool.

@Alphapage
Copy link

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.

@sheinzle
Copy link

+1

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

@Izhaki
Copy link

Izhaki commented Sep 22, 2017

+1

@glen-84
Copy link

glen-84 commented Sep 22, 2017

Why the downvote @glen-84?

Because it notifies all subscribers, without adding any value.

You should instead add a reaction to the first comment.

@Izhaki
Copy link

Izhaki commented Sep 22, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants