

But generating a source map isn’t worth diddly if the browser can’t find it. We’re going to presume that you’ve already produced a source map using a tool like UglifyJS or Webpack. Reason 1: Missing or incorrect source map directive If you’re looking to get started with source maps for the first time, check out our earlier post, Debugging Minified JavaScript with Source Maps, before continuing. If you’ve run into some trouble, the tips below will hopefully help you get everything in working order. However, source maps can be tricky to get working properly. In a sense, source maps are the decoder ring to your secret (minified) code. Namely, because they are used to display your original JavaScript while debugging, which is a lot easier to look at than minified production code.

This content is out of date Since this blog has been published a lot of improvement have been made to source maps at Sentry.
