JSPM

convert-sourcemap-stacktrace

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q24091F
  • License MIT

Converts a stacktrace using a sourcemap.

Package Exports

  • convert-sourcemap-stacktrace

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (convert-sourcemap-stacktrace) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

convert-sourcemap-stacktrace

Uses a source map to convert a stack trace from running bundled / minified JavaScript code into the original stack trace.

Install

yarn add -D convert-sourcemap-stacktrace

Usage

  • Copy main.bundle.js.map somewhere.

  • Create a stacktrace.txt file containing the stack trace to convert.

  • Run the convert-sourcemap-stacktrace script:

yarn convert-sourcemap-stacktrace --stack path/to/stacktrace.txt --source-map path/to/main.bundle.js.map
  • If the bundle / minified file has another name:
yarn convert-sourcemap-stacktrace --bundle-name {your_bundle_name} --stack path/to/stacktrace.txt --source-map path/to/{your_bundle_name}
  • For more information:
yarn convert-sourcemap-stacktrace --help