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

```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
-------------- 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