Source maps?
@sokra is this good?
BTW it's potentially breaking right? 0.11 is still RC? Or did JSX not change?
yes but i bumped jsx-loader version accordingly
(i doubt anything actually breaks)
Ah right I didn't notice -rc on the loader version.
hmm.. i don't think it's good...
It need to be something like:
var result = ....transformWithDetails(...);
this.callback(null, result.code, result.map);
@sokra are inline sourcemaps supported/
only with the source-map-loader...
So it's better to return it directly... also better for performance...
@petehunt I added source-map support in my fork here, but it just uses convert-source-map to extract the inlined source map, which I'm sure is far from optimal. Do you want me to create a pull request or do you have a better alternative in the works?
I'm not really actively working on this so send a pr if it works!
see https://github.com/jRiest/jsx-loader/commit/9a0bce47d0ae92937c6a0626a481ad822802857a#commitcomment-7486540
@sokra that's much better. Thanks for pointing that out. I re-implemented sourcemaps using that method and submitted a pull request against this branch (sourcemaps) here