Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>unwrap-source-mapNew to Visual Studio Code? Get it now.
unwrap-source-map

unwrap-source-map

Aravind Sankaranarayanan

|
1 install
| (0) | Free
Unwrap loader.js.map files into respective files and run OBX UI extended components.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

unwrap-source-map

unwrap-source-map is a VS Code extension that adds a right-click context menu option to unwrap .map files using a bundled extract-sourcemap.js script.
It’s designed to quickly extract, beautify, and clean source files from JavaScript source maps — all without leaving VS Code.


Features

  • Right-click → "Unwrap Source Map" directly from the Explorer view.
  • Automatically backs up the original folder before changes.
  • Extracts .js, .html, .css, and .json files from the source map.
  • Cleans AMD define(...) wrappers.
  • Beautifies extracted code using js-beautify.
  • Works on any machine without requiring manual script installation.

Example workflow:

  1. Right-click on a .map file in the VS Code explorer.
  2. Select "Unwrap Source Map".
  3. The extension extracts and formats the original files next to the .map file.

Requirements

No global dependencies are required.
The extension bundles:

  • extract-sourcemap.js
  • js-beautify

You just need VS Code and a .map file to unwrap.


Extension Settings

This extension does not add custom settings yet.
Future settings might include:

  • Beautifier indent size
  • File type filtering
  • Backup folder naming format

Known Issues

  • Large source maps may take several seconds to unwrap.
  • Existing files will be overwritten unless you restore from the generated backup.
  • Does not yet support .map files that are not in loader.js.map format.

Release Notes

0.2.1 (Beta)

  • Extended component run guard: The Run OBX UI Extended Component option now only appears for base files that support extensibility, preventing accidental runs on non-extensible files.

0.2.0 (Beta)

  • Custom extension build command: Added ability to run obx ui --mb directly from a context menu on folders.
  • Dynamic folder targeting: The folder name is now automatically set based on the folder clicked in the context menu.
  • Last-used directory memory: The extension remembers the last chosen extension home directory for quick reuse.

0.1.1 (Beta)

  • Added folder-level unmap: You can now right-click on a folder to unmap all its extensions.
  • Improved text module matching: Updated regexp to handle text!<anymodule> (not just text!obtfpm or css!obtfpm), enabling SMS component unwrapping.

0.1.0 (Beta)

  • Initial beta release.
  • Added a context menu action for .map files.
  • Integrated extract-sourcemap.js within the extension for shared usage.
  • Bundled js-beautify for automatic formatting.

For more information

  • VS Code Extension API
  • Markdown Syntax Reference

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft