Quantifying Default Exports

Marius Gundersen gundersen at gmail.com
Tue Jul 22 01:29:02 PDT 2014

On 22 Jul 2014 00:30, "Calvin Metcalf" <calvin.metcalf at gmail.com> wrote:
> Wasn't the original issue single exports and their demonstrated utility
in node and AMD?

Default can be used with named exports, and therefore does not indicate
that a module is single export. And you can make a single export module by
exporting a single named export. Therefore there is no correlation between
default and single exporting modules.

The default import is a useful syntactic sugar, but the default export does
not map well with it, especially because rather than saving keystrokes it
is (potentially) longer to use than a named export.

Marius Gundersen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140722/e7037773/attachment.html>

More information about the es-discuss mailing list