dynamic synchronous import

Konstantin Ikonnikov ikokostya at gmail.com
Fri Sep 26 08:12:53 PDT 2014

Can I import module dynamically, but synchronously? Example for common js

var moduleName = 'foo';
var foo = require(moduleName);

In es6 draft I found that ModuleSpecifier must be a StringLiteral
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140926/eeeadf3d/attachment.html>

More information about the es-discuss mailing list