Merge branch 'source-map-reenter' of https://github.com/kpdecker/babel into kpdecker-source-map-reenter
Conflicts: packages/babel-generator/src/printer.js
This commit is contained in:
@@ -330,7 +330,7 @@ export default function () {
|
||||
]));
|
||||
}
|
||||
}
|
||||
remaps[specifier.local.name] = t.memberExpression(target, specifier.imported);
|
||||
remaps[specifier.local.name] = t.memberExpression(target, t.cloneWithoutLoc(specifier.imported));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -9,7 +9,7 @@ import {foo as bar2} from "foo5";
|
||||
export {test};
|
||||
export var test = 5;
|
||||
|
||||
bar(foo);
|
||||
bar(foo, bar2);
|
||||
|
||||
/* my comment */
|
||||
bar2;
|
||||
|
||||
@@ -26,8 +26,8 @@ var _foo5 = require("foo5");
|
||||
exports. /*after*/test = test;
|
||||
var test = /*before*/exports. /*after*/test = 5;
|
||||
|
||||
/*before*/(0, _foo4. /*after*/bar)( /*before*/_foo2.default) /*after*/;
|
||||
/*before*/(0, _foo4.bar) /*after*/( /*before*/_foo2.default /*after*/, /*before*/_foo5.foo /*after*/);
|
||||
|
||||
/* my comment */
|
||||
/*before*/_foo5. /*after*/foo;
|
||||
/*before*/_foo5.foo; /*after*/
|
||||
/*before*/_foo2.default; /*after*/
|
||||
|
||||
@@ -6,3 +6,4 @@ import * as foo4 from "foo";
|
||||
foo;
|
||||
foo2;
|
||||
foo3;
|
||||
foo3();
|
||||
|
||||
@@ -4,4 +4,5 @@ var _foo = require("foo");
|
||||
|
||||
_foo.default;
|
||||
_foo.default;
|
||||
_foo.foo3;
|
||||
_foo.foo3;
|
||||
(0, _foo.foo3)();
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
[{
|
||||
"original": {
|
||||
"line": 6, "column": 0
|
||||
},
|
||||
"generated": {
|
||||
"line": 5, "column": 0
|
||||
}
|
||||
},{
|
||||
"original": {
|
||||
"line": 6, "column": 0
|
||||
},
|
||||
"generated": {
|
||||
"line": 5, "column": 12
|
||||
}
|
||||
},{
|
||||
"original": {
|
||||
"line": 8, "column": 0
|
||||
},
|
||||
"generated": {
|
||||
"line": 7, "column": 0
|
||||
}
|
||||
},{
|
||||
"original": {
|
||||
"line": 8, "column": 0
|
||||
},
|
||||
"generated": {
|
||||
"line": 7, "column": 9
|
||||
}
|
||||
},{
|
||||
"original": {
|
||||
"line": 9, "column": 0
|
||||
},
|
||||
"generated": {
|
||||
"line": 8, "column": 0
|
||||
}
|
||||
},{
|
||||
"original": {
|
||||
"line": 9, "column": 0
|
||||
},
|
||||
"generated": {
|
||||
"line": 8, "column": 9
|
||||
}
|
||||
}]
|
||||
Reference in New Issue
Block a user