Module syntax

Andrea Giammarchi andrea.giammarchi at gmail.com
Mon Jun 3 13:15:57 PDT 2013


+1

as soon as the syntax is slightly different from NPM/AMD makes sense to
have less ambiguity and a better definition.

export default looks good here too


On Mon, Jun 3, 2013 at 12:57 PM, Domenic Denicola <
domenic at domenicdenicola.com> wrote:

> I really dislike `export =`. It looks like it should be creating a global
> variable named `export`.
>
> `export default` is perfect IMO. It also conceptually fits better with how
> default exports work. (I.e., they're *default* exports, they're not the
> entirety of the exports. They don't overwrite the module instance object,
> in the fashion that `module.exports =` does.)
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130603/e8e79671/attachment.html>


More information about the es-discuss mailing list