Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Add comment about files names convention

...

Alert
titleJacascript source maps
typeWarning

When we update a library and we use the minified version we need to

  1. verify that we have the source (js and/or css);
  2. create a JavaScript source map if it does not exist you may use a tool like https://github.com/mozilla/source-map;
  3. 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.
  4. 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


Following are the efforts put to fix vulnerabilities detected using retire.js:

...