Module syntax

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


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> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list