azu/multi-stage-sourcemap — pull request #1 by vvakame (2014-08-26 10:05:30+00:00)
Title: fix source bug. it occured at N:1 source mapping.

@azu
https://github.com/mozilla/source-map#sourcemapgeneratorprototypeaddmappingmapping
source are mapping for source ID.

https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#heading=h.mofvlxcwqzej
Revision 3 Format > Proposed Format > Line 8 > The fields in each segment are:

> If present, an zero-based index into the “sources” list. This field is a base 64 VLQ relative to the previous occurrence of this field, unless this is the first occurrence of this field, in which case the whole value is represented.

toSMC.file is not root source file. (e.g. foo.coffee -> foo.js -> foo.min.js. toSMC.file === foo.js, not foo.coffee)