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

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

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

  • Version quantity that the foundation map is situated off
  • The file title of this code that is generatedYour minifed/combined manufacturing file)
  • sourceRoot lets you prepend the sources having a folder structure – this might be additionally an area preserving method
  • 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 when the secret occurs making use of Base64 VLQ values. The genuine area preserving is performed right here.

Base64 VLQ and maintaining the supply map little

Originally the foundation map spec had a really verbose production of all of the mappings and led to the sourcemap being about 10 times how big is the code that is generated. Leer más