dynamic synchronous import

John Barton johnjbarton at google.com
Fri Sep 26 08:29:22 PDT 2014


no.

On Fri, Sep 26, 2014 at 8:12 AM, Konstantin Ikonnikov <ikokostya at gmail.com>
wrote:

> Can I import module dynamically, but synchronously? Example for common js
>
> ```js
> var moduleName = 'foo';
> var foo = require(moduleName);
> ```
>
> In es6 draft I found that ModuleSpecifier must be a StringLiteral
> http://people.mozilla.org/~jorendorff/es6-draft.html#sec-imports
>
> _______________________________________________
> 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/20140926/100c8eff/attachment-0001.html>


More information about the es-discuss mailing list