Initialize it with a source map, then feed it error stacks to have the trace locations mapped to the original files.
JavaScript
39
3
MIT License
Stack-mapper is a Node.js library that maps error stack traces from generated files back to their original source files using source maps. It's designed for developers working with transpiled or bundled JavaScript code who need to debug errors in their original source files rather than the compiled output.