This repo contains the source code for the https://sourcemap.tools.
This little web app allows you to paste a stack trace of minified JavaScript code, apply source maps to it, and see the original positions of the errors.
The application may help investigate errors in production if you do not host source maps but can still extract them from build artifacts.
Inspired by https://sourcemaps.info/, but does everything on the client and does not try to fetch sources or source maps.
- Paste your stack trace on the left.
- Provide source maps by choosing files or pasting the content of the source map.
- See the results on the right.
-
Clone the repository
-
Go to the project's directory and install dependencies
npm ci
-
Run and go to http://localhost:5173/
npm run dev
-
Optionally run tests
npm test