Source maps
Upload the maps from each build so minified stack traces become your real files and line numbers.
Minified JavaScript produces stack traces that point at main.3f9c.js:1:48211. Upload the source maps from each
build and Mendloop turns them back into your real files and line numbers, which is also what root-cause analysis
needs to cite the exact line.
Upload from the command line or CI#
mendloop sourcemaps upload ./dist \
--url https://app.getmendloop.com \
--release web@1.8.2 \
--org ORG_ID --project PROJECT_ID \
--key sk_live_… # a secret key with sourcemaps:write--urlis your Mendloop address. The CLI defaults tolocalhost, so on Mendloop Cloud passhttps://app.getmendloop.com; on a self-hosted install, your own domain.- The
--releasemust equal thereleaseyou pass toinitin the SDK. - Run it in CI after the build, with the key stored as a CI secret.
- The key is a secret key with the
sourcemaps:writescope.
Upload in the app#
You can also upload files in the app under Project → Releases.
Tag your releases#
For the root cause to cite exact lines, Mendloop needs the commit your release was built from. It looks for, in order:
- a SHA in the release name (
web@1.8.2+3f9c2ab); - a
commit,git_shaorvcs.revisiontag on the event; - a git tag named like the release (
web@1.8.2,1.8.2orv1.8.2).
If none is found, it reads the default branch head and the report says so.
One command setup Planned#

npx mendloop init, run in your app's repository, will find your framework, add the SDK and the source-map
upload, write the config and send a test error. Until it ships, use the steps above.