Modules, Concatenation, and Better Solutions

Kevin Smith khs4473 at gmail.com
Mon Oct 15 06:45:35 PDT 2012


> I believe that concatenation of modules ought to work fine as an
> approach for minimization of requests, because modules are executed
> when imported.
>

OK, so:

    module A {
      console.log("a");
      export var x;
    }

    console.log("$");
    import x from A;

Does this print:

    $
    a

or

    a
    $

?

Thanks!

Kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20121015/8d243dc4/attachment.html>


More information about the es-discuss mailing list