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

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

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

  • Variation quantity that the origin map is situated off
  • The file title of this generated rule (Your minifed/combined manufacturing file)
  • sourceRoot lets you prepend the sources with a folder structure – this really is also a place preserving method
  • sources contains all of the file names which were combined
  • names contains all variable/method names that appear through your rule.
  • Finally the mappings home is where the miracle takes place Base64 that is using VLQ. The genuine room preserving is completed right right right here.

Base64 VLQ and maintaining the supply map small

Initially the origin map spec had a rather verbose production of all of the mappings and led to the sourcemap being about 10 times how big is the generated rule. Variation two paid down that by around 50 version and% three paid down it once more by another 50%, so for a 133kB file you get by having a

Continue reading “The example that is following a small variation through the V3 spec instance.”