Open Pauan opened 9 years ago
Consider these three modules:
// foo.js export var foo = 5; // bar.js import { foo } from "./foo"; export { foo }; // qux.js import * as bar from "./bar"; console.log(bar.foo);
Using the "bundle" format of es6-module-transpiler version 0.9.6, I get this output:
(function() { "use strict"; var $$bar$$ = { get foo() { return $$bar$$foo; } }; var $$foo$$foo = 5; console.log($$bar$$.foo); }).call(this); //# sourceMappingURL=build.js.map
As you can see, it incorrectly uses the variable $$bar$$foo, rather than the correct variable $$foo$$foo.
$$bar$$foo
$$foo$$foo
If I change qux.js to this, then it works correctly:
qux.js
import { foo } from "./bar"; console.log(foo);
Consider these three modules:
Using the "bundle" format of es6-module-transpiler version 0.9.6, I get this output:
As you can see, it incorrectly uses the variable
$$bar$$foo
, rather than the correct variable$$foo$$foo
.If I change
qux.js
to this, then it works correctly: