Fix the source maps merging

In the current state, when the inputSourceMap has multiple sources, all the generated source map will point to the first file. Use the mapping's source instead.
This commit is contained in:
Tadeu Zagallo
2015-11-12 18:18:41 +00:00
parent f91cfa68b9
commit 5412c4d6be

View File

@@ -362,7 +362,7 @@ export default class File extends Store {
inputMapConsumer.eachMapping(function (mapping) {
mergedGenerator.addMapping({
source: inputMapConsumer.file,
source: mapping.source,
original: {
line: mapping.originalLine,