Export * as name from "source"

Lee Byron leebyron at fb.com
Sat Mar 7 02:11:58 UTC 2015


I’m curious of this history behind this case being missing, I’ve been crawling through the spec and old esdiscuss and can’t find it:

I expected the following:

export * as someName from "module”;

To behave much like:

Import * as someName from "module”;
export someName;

Except without adding “someName” to this module’s scope.

In common-js terms, transpiled to:

exports.someName = require(“module”);


Does anyone have context as to why this piece of syntax doesn’t exist? Is there a case to be made to incrementally add it in ES7?


- Lee Byron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150307/8bda67d4/attachment.html>


More information about the es-discuss mailing list