https://github.com/janeasystems/convert-sourcemap-stacktrace
Converts a stacktrace using a sourcemap.
https://github.com/janeasystems/convert-sourcemap-stacktrace
Last synced: about 1 year ago
JSON representation
Converts a stacktrace using a sourcemap.
- Host: GitHub
- URL: https://github.com/janeasystems/convert-sourcemap-stacktrace
- Owner: JaneaSystems
- License: mit
- Created: 2020-08-04T10:49:03.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-04T12:22:20.000Z (almost 6 years ago)
- Last Synced: 2025-04-08T22:05:03.820Z (about 1 year ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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
```