On Tue, Jun 10, 2014 at 9:06 AM, Domenic Denicola <
dome...@domenicdenicola.com> wrote:

> From: es-discuss [mailto:es-discuss-boun...@mozilla.org] On Behalf Of
> Marius Gundersen
>
> > This will likely lead to a lot of confusion, not only for module makers
> but also for module consumers.
>
> Agreed. Which is why I predict module makers will, at the encouragement of
> module consumers, stick to default-export only, since it is more in line
> with existing practice.
>

That works around all of the static analysis made possible by the current
spec. It is impossible to do static analysis on a defaultExported object.
It would be unfortunate if all the time and effort spent on making module
exports statically analysable is for nothing simply because the real world
finds another way to use modules.

I'd say we only support named exports, something like this:
https://gist.github.com/mariusGundersen/88a4c5690e08da0d07f6

Marius Gundersen
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to