-
Notifications
You must be signed in to change notification settings - Fork 126
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
Generates incorrect source map when one of the source vinyls has no sourceMap #94
Comments
I think this should be done in gulp-sourcemaps not in each plugin |
It wouldn't need to be in each plugin, just in gulp-concat. I don't think any other plugins mind if they get an empty source map. To generate the identity map you'll need to parse the source code with something like esprima which might seem a bit heavy considering they aren't needed in most cases. |
other option is handling it in concat-with-sourcemaps but it should not be in gulp-concat |
Okay I'll leave you to open the bug against |
@ohjames last couple years? gulp-sourcemaps is like less than 1yr old and gulp is still a pretty new project |
Surprised, feels like years. On 13 May 2015 19:49:01 BST, contra notifications@github.com wrote:
|
@ohjames Bugs can't get fixed if nobody opens a ticket. Your fault for not opening a ticket when you encountered a bug. |
e.g.:
The vinyl for
bootstrap.js
has an empty source map attached by this line of code:https://github.com/floridoo/gulp-sourcemaps/blob/master/index.js#L107
gulp-concat
should detect empty source maps and replace them with identity source maps. Either this or that line there could be changed to attach an identity source map instead of an empty source map.sigh
takes the former approach as it's slightly more efficient and abstracts it behind the source map API. With that small change thengulp-concat
will produce correct source maps :)Here is a code sample that shows how to generate identity source maps.
First reported in gulpjs/gulp#843 (comment)
The text was updated successfully, but these errors were encountered: