joomla visitors
Your browser (Internet Explorer 6) is out of date. It has known security flaws and may not display all features of this and other websites. Learn how to update your browser.
X
Post

The example that is following a small variation through the V3 spec instance.

Above you can view that the source map is definitely an object literal containing lots of juicy information:

  • Variation quantity that the origin map relies off
  • The file title associated with code that is generatedYour minifed/combined manufacturing file)
  • sourceRoot enables you to prepend the sources with a folder structure – this will be additionally a room preserving strategy
  • sources contains most of the file names which were combined
  • names contains all names that are variable/method appear through your rule.
  • Finally the mappings home is where the secret occurs Base64 that is using VLQ. The genuine area preserving is completed right here.

Base64 VLQ and maintaining the supply map little

Initially the foundation map spec had a tremendously verbose production of all mappings and led to the sourcemap being about 10 times how big the code that is generated. Variation two paid down that by around 50% and variation three paid down it once again by another 50%, therefore for a 133kB file you get with a

300kB supply map. Just how did they lessen the size while nevertheless keeping the complex mappings? More…