lukeed/uvu

Support for source maps

js-choi opened this issue · 1 comments

Uvu (specifically bin.js) doesn’t seem to enable source maps; when errors from minified/transpiled code occur in tests, Uvu prints stacktraces without source maps. It would be great if Uvu did enable source maps.

(My current workaround is to add --enable-source-maps to the #!/usr/bin/env node shebang line in each of my projects’ node_modules/uvu/bin.js files.)

I never had success with native source mapping. I use source-map-support and attach it like so:

$ uvu -r source-map-support/register tests