0.1.0 • Published 5 years ago
convert-sourcemap-stacktrace v0.1.0
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-stacktraceUsage
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 --help0.1.0
5 years ago