Uses a source map to convert a stack trace from running bundled / minified JavaScript code into the original stack trace.
yarn add -D convert-sourcemap-stacktrace
-
Copy
main.bundle.js.mapsomewhere. -
Create a
stacktrace.txtfile containing the stack trace to convert. -
Run the
convert-sourcemap-stacktracescript:
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