- Set up webpack to generate source-maps.
- Set
release: process.env.RELEASE_NAME
when configuringraven-js
. - Upload the source maps and the minified JS bundle to sentry, e.g. using sentry-cli, providing the same
RELEASE_NAME
. - Generate some errors.
- Enjoy full stack-traces.
Note: do not forget to upload the minified JS bundle. It's not clear from the documentation that this is needed, but it is :-|