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

Support for source maps #212

Open
js-choi opened this issue Jun 29, 2022 · 1 comment
Open

Support for source maps #212

js-choi opened this issue Jun 29, 2022 · 1 comment

Comments

@js-choi
Copy link

js-choi commented Jun 29, 2022

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.)

@lukeed
Copy link
Owner

lukeed commented Jul 3, 2022

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

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

No branches or pull requests

2 participants