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

config to override sourceRoot #414

Closed
Toxicable opened this issue Dec 30, 2019 · 1 comment
Closed

config to override sourceRoot #414

Toxicable opened this issue Dec 30, 2019 · 1 comment

Comments

@Toxicable
Copy link

Toxicable commented Dec 30, 2019

I have a case where our source maps require using the sourceRoot property to get back to the actual source file for a NodeJS program.
However, we can't compute the sourceRoot at build time, it's only known at runtime.
Would it make sense for source-map to add some config where you can set the sourceRoot source maps being read, either overriding or setting it as the default sourceRoot
This would be used with the downstream lib source-map-support for source maps in stack traces

Related issue: bazel-contrib/rules_nodejs#823 (comment)

@Toxicable
Copy link
Author

I don't think this is needed, for our use case anymore.
See microsoft/vscode-chrome-debug-core#549

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

1 participant