Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support source maps for JS-based visualizations #3208

Merged
merged 14 commits into from
Jan 11, 2022

Conversation

vitvakatu
Copy link
Contributor

@vitvakatu vitvakatu commented Dec 27, 2021

Pull Request Description

Continuation of #3204
This PR implements source maps support for JS-based visualizations (both user-defined and built-in). This allows seeing original file names and line numbers in DevTools while debugging errors in visualizations. See attached screen recordings:

Built-in visualizations:

Screen.Recording.2021-12-27.at.19.54.45.mov

User-defined ones:

Screen.Recording.2021-12-27.at.19.55.27.mov

This is implemented by generating and attaching source maps directly to the source code of the visualization using the "inline" base64-encoded source map.

Checklist

Please include the following checklist in your PR:

  • The documentation has been updated if necessary.
  • All code conforms to the Scala, Java, and Rust style guides.
  • All documentation and configuration conforms to the markdown and YAML style guides.
  • All code has been tested where possible.

@vitvakatu vitvakatu self-assigned this Dec 27, 2021
@vitvakatu vitvakatu marked this pull request as ready for review December 27, 2021 17:49
@4e6 4e6 merged commit 1daf1db into develop Jan 11, 2022
@4e6 4e6 deleted the wip/vitvakatu/visualizations-source-maps-180620124 branch January 11, 2022 12:31
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants