support module live bindings in arbitary positions not in Program statement position - fixes #1760
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
if (true) {
|
||||
import foo from "foo";
|
||||
} else {
|
||||
import bar from "foo";
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"throws": "Duplicate module declarations with the same source but in different scopes",
|
||||
"loose": "es6.modules"
|
||||
}
|
||||
@@ -1 +1,7 @@
|
||||
export var foo = 5;
|
||||
|
||||
if (true) {
|
||||
import bar from "bar";
|
||||
}
|
||||
|
||||
bar;
|
||||
|
||||
@@ -2,4 +2,12 @@
|
||||
|
||||
exports.__esModule = true;
|
||||
var foo = 5;
|
||||
exports.foo = foo;
|
||||
|
||||
exports.foo = foo;
|
||||
if (true) {
|
||||
var _bar = require("bar");
|
||||
|
||||
var _bar2 = babelHelpers.interopRequireDefault(_bar);
|
||||
}
|
||||
|
||||
bar;
|
||||
|
||||
Reference in New Issue
Block a user