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

Consider adding support for sourcemaps (specifically for tracebacks)? #32

Closed
willstott101 opened this issue Feb 18, 2022 · 1 comment
Closed

Comments

@willstott101
Copy link

I love this module for fast development, but the incorrect line numbers in the output is a real issue for me.

Would you consider a PR which adds sourcemap support via something like: https://github.com/evanw/node-source-map-support

...or would the additional dependencies be a total no-go?

@lukeed lukeed closed this as completed in 2cd3dd0 Nov 28, 2022
@lukeed
Copy link
Owner

lukeed commented Nov 28, 2022

Added sourcemap support when using tsm directly (as opposed to node -r tsm and node --loader tsm usage).

This is done via Node's native --enable-source-maps flag which works well (Node 12.12 and up, experimental warning removed in Node 15)

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