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

Source maps for source transformers #43

Open
OliverJAsh opened this issue Nov 17, 2014 · 1 comment
Open

Source maps for source transformers #43

OliverJAsh opened this issue Nov 17, 2014 · 1 comment

Comments

@OliverJAsh
Copy link

Errors originating from source that has been transformed do not have correct mappings in their stack trace. I believe this is because when source is transformed, no source map can be provided.

Could we allow a source map to be passed and then rewrite all call stacks?

@domenic
Copy link
Collaborator

domenic commented Nov 18, 2014

That sounds ambitious, but if you can think of an approach, pull request welcome. It would have to be off by default for performance I think?

The source-map-support package seems useful for this. In fact, it might be possible to just use that without any changes to sandboxed-module... if so we could add something to the readme explaining how.

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