Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Source Map

Source Map
Source Map helps us Debug Javascript code in production. Source Map creates a mapping between the original development version of the JavaScript / JSX files and the compiled and bundles production version of the JavaScript files, thereby allowing us to debug in production.

In the previous posts we saw how Bablecompiles the ES6 & JSX code and transforms them into JavaScript and how webpack bundles the individual files into a common bundle.js file. As a result of the transpilation, minification and bundling process we are left with a large JavaScript file which is almost impossible to debug, but we cannot avoid these steps since they are required to make the JavaScript application secure and performance efficient in the production environment. If so then how do we debug issues in production environment, the answer to this is Source Map.



This post first appeared on C# Guide, please read the originial post: here

Subscribe to C# Guide

Get updates delivered right to your inbox!

Thank you for your subscription

×