Description: compatibility with latest source-map >= 0.6
Forwarded: https://github.com/floridoo/concat-with-sourcemaps/pull/15
Author: Jérémy Lal <kapouer@melix.org>
Last-Update: 2017-12-29
--- a/index.js
+++ b/index.js
@@ -62,11 +62,11 @@
               line: _this.lineOffset + mapping.generatedLine,
               column: (mapping.generatedLine === 1 ? _this.columnOffset : 0) + mapping.generatedColumn
             },
-            original: {
+            original: mapping.originalLine == null ? null : {
               line: mapping.originalLine,
               column: mapping.originalColumn
             },
-            source: mapping.source,
+            source: mapping.originalLine != null ? mapping.source : null,
             name: mapping.name
           });
         }
--- a/test/index.js
+++ b/test/index.js
@@ -262,7 +262,7 @@
   ],
   output: {
     content: 'AAA\nBBB\nCCC\nEEE\nFFF',
-    sourceMap: '{"version":3,"file":"out.js","sources":["test12","test13","test2","test3"],"names":[],"mappings":";AAAA;ACAA;ACAA;ACAA","sourcesContent":["BBB","CCC",null,null]}'
+    sourceMap: '{"version":3,"file":"out.js","sources":["test12","test13","test2","test3"],"names":[],"mappings":"A;AAAA;ACAA;ACAA;ACAA","sourcesContent":["BBB","CCC",null,null]}'
   }
 });
 
