A library to send data about javascript exceptions to the go-sourcemap libary
import * as GoSourcemap from "go-sourcemap-js";
try {
function div(a, b) {
return a / b.myattribute.myattribute;
}
div(2, 0);
} catch (e) {
GoSourcemap.captureException(e);
}