valotas / karma-parcel

Karma with Parcel bundler
MIT License
6 stars 2 forks source link

Support serving sourcemaps #13

Open valotas opened 5 years ago

jonfk commented 4 years ago

Hi 👋 , first I would like to thank you for your project. This helped me get testing for my project up and running pretty quick.

I just ran into the issue of sourcemaps when debugging a failing test. I was wondering what it would entail. Maybe I can help if there is a fairly straightforward way to implement it.

valotas commented 4 years ago

Hi @jonfk sorry for my late answer. I really want to do that, but got lazy. If you feeling like trying it out, I believe all you need to do is allow the sourcemaps to be served to karma then the browser should pick them up an print you the right stacktrace. But that is just a theory of mine

Given the current circumstances I will definetely have a look at this the coming days.