Quantifying Default Exports
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss