Source Map is the answer to your question. Using source map, you can decode and get the correct stack trace from your compressed and bundled JavaScript files. In Atatus, you can either upload your source map files directly to our server or just add a footer in your minified js file, from which we will automatically pull map files and decode the error.
You can read more about source maps in Source Maps documentation.