esperantojs / esperanto

DEPRECATED: An easier way to convert ES6 modules to AMD and CommonJS
http://esperantojs.org
234 stars 21 forks source link

export-as-from imports using the exported name #145

Closed Arnavion closed 9 years ago

Arnavion commented 9 years ago
export { foo as bar } from "mod";

gives (on http://esperantojs.org/)

Object.defineProperty(exports, 'bar', { enumerable: true, get: function () { return mod.bar; }});

It should be

Object.defineProperty(exports, 'bar', { enumerable: true, get: function () { return mod.foo; }});