Skip to content

cncolder/vscode-source-map-visualization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5a7f491 Β· Apr 5, 2023

History

49 Commits
Dec 8, 2022
Dec 7, 2022
Oct 23, 2022
Dec 7, 2022
Dec 13, 2022
Apr 5, 2023
Oct 22, 2022
Dec 8, 2022
Oct 21, 2022
Oct 22, 2022
Oct 21, 2022
Oct 21, 2022
Dec 13, 2022
Dec 13, 2022
Oct 23, 2022
Apr 5, 2023
Apr 5, 2023
Dec 13, 2022
Dec 8, 2022
Dec 8, 2022

Repository files navigation

Source Map Visualization VS Code

Visual Studio Marketplace Version

This is a visualization of JavaScript/CSS source map data, which is useful for debugging problems with generated source maps. It's designed to be high-performance so it doesn't fall over with huge source maps.

Usage

Right clicks on the minify code. Select Source Map Visualization in the context menu.

Or press ⌘ ⇧ P in the vscode and type Source Map Visualization.

Supported source map:

  1. Inline base64 source map. //# sourceMappingURL=data:application/json;base64,
  2. External source map url. //# sourceMappingURL=index.js.map
  3. Sibling code and source map. index.js and index.js.map.
  4. Guess possible source map. index.js and index.map.

Demo

Tips

You can select partial code in the editor. This is useful when you want to visualize the source map of a specific <script> tag in html.

You can copy and paste the code to the existed Source Map Visualization panel.

Features

  • πŸš€ Excellent performance.
  • πŸ’ž Beauty block highlight and connection animation.
  • πŸ—ž Parse inline source map url.
  • πŸ”— Load external source map file.
  • πŸͺ„ Allow code partial selection. e.g. <script> tag in html.
  • 🎯 Goto line and column.

Development

CI Release

pnpm i

Open VS Code Run and Debug panel, select Extension to start debugging.

Release

pnpm release

This script will bump the version, build the extension, and publish it to the vs code marketplace. And then draft a new release on github.

Thanks

evanw/source-map-visualization

License

MIT License Β© 2022 Colder