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

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

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

  • Variation quantity that the origin map is situated off
  • The file title for the code that is generatedYour minifed/combined production file)
  • sourceRoot enables you to prepend the sources by having a folder structure – it is also a place preserving strategy
  • sources contains all of the file names that have been combined
  • names contains all names that are variable/method appear through your rule.
  • Finally the mappings property is when the secret occurs Base64 that is using VLQ. The genuine area preserving is completed right here.

Base64 VLQ and maintaining the supply map tiny

Initially the foundation map spec had a rather verbose production of all of the mappings and lead 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 the 133kB file you get by having a

300kB supply map. Just how did they lower the size while nevertheless keeping the mappings that are complex? Continue reading “The following example is a small variation through the V3 spec instance.”