C. Scott Ananian ecmascript at
Mon Jun 30 13:10:06 PDT 2014

On Jun 30, 2014 3:59 PM, "Karolis Narkevičius" <karolis.n at> wrote:
> In fact, doesn't being able to import things like above make es6 modules
already interoperable with CJS?

Almost, but not quite, since the name of the module itself ($, fs, etc) is
not included in a typical commonjs module.  So it would really be:
import {_ as $} from "jquery";
// etc
And from here the jump to "default import" as a small syntactic improvement
on this seemed clear. (At the time at least.)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list