Handle input source mappings with no source location - fixes T7151

This commit is contained in:
Logan Smyth 2016-04-02 19:56:31 -07:00
parent d221e21102
commit 3af8ec16e9
5 changed files with 23 additions and 1 deletions

View File

@ -391,7 +391,7 @@ export default class File extends Store {
mergedGenerator.addMapping({
source: mapping.source,
original: {
original: mapping.source == null ? null : {
line: mapping.originalLine,
column: mapping.originalColumn
},

View File

@ -0,0 +1,5 @@
var foo = function () {
return 4;
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm9yaWdpbmFsLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLFVBQVUsWTtTQUFNLEM7Q0FBQyIsInNvdXJjZXNDb250ZW50IjpbInZhciBmb28gPSAoKSA9PiA0OyJdfQ==

View File

@ -0,0 +1,3 @@
var foo = function () {
return 4;
};

View File

@ -0,0 +1,3 @@
{
"inputSourceMap": true
}

View File

@ -0,0 +1,11 @@
{
"version": 3,
"mappings": "AAAA;SAAgB,A,AAAC,E;CAAP",
"names": [],
"sources": [
"original.js"
],
"sourcesContent": [
"var foo = () => 4;"
]
}