When we update a library and we use the minified version we need to - verify that we have the source (js and/or css);
- create a JavaScript source map if it does not exist you may use a tool like https://github.com/mozilla/source-map;
- change or add a sourceMappingURL comment in the the minified version. You can follow https://developer.mozilla.org/en-US/docs/Tools/Debugger/How_to/Use_a_source_map.
- We need to follow a convention for minified files with maps. Like: jquery-3.5.1.js, jquery-3.5.1.min.js and jquery-3.5.1.min.js.map
|