restrictions on module import export names

Kevin Smith zenparsing at gmail.com
Wed Jan 29 18:55:38 PST 2014


>
>
> ```js
> let app = module.exports = require('express')();
> ```
>

Not impossible.  Possibly:

    import express from "express";
    let app = express();
    export { app as default };

I think you're attempting to optimize edge cases.

Also, I agree with Domenic.  Read the grammar for the current spec and try
not to post syntax errors that might lead others astray  : )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140129/f4f53dd6/attachment.html>


More information about the es-discuss mailing list