Converting Sourcemaps to Original JavaScript/TypeScript Sourcecode

Introduction Hi everyone! This is going to be a short and quick tutorial on how to download sourcemap files and convert them into the original JavaScript source code. Here’s an example of minified code from a Next.js website: And here is the same code after the browser has done its magic and reconstructed the original code using sourcemaps: Take a look at the bottom toolbar — it shows whether the…