Date:  13 Nov 2017 02:47:52 Hong Kong Time

Getting line numbers from mappings


I have a question when generating and reading mappings. In the v3 spec it says:

> The “mappings” data is broken down as follows: each group representing a line in the generated file is separated by a ”;”

Does this mean that the mapping should have the same number of semi-colons as lines and if it doesn't then it's a bug? Or are empty lines allowed to be omitted?

I'm asking because i'm trying to fix a piece of code that relies on this logic to concat source maps

However it looks like coffeescript skips adding a mapping group for empty lines, so that technique is thrown off.

If empty lines can be omitted from mappings does anyone have another good way to concatenate source maps if the generated files are not available?