ModuleImport

Juan Ignacio Dopazo jdopazo at yahoo-inc.com
Thu Jun 19 07:18:00 PDT 2014



On Thursday, June 19, 2014 5:17 AM, David Herman <dherman at mozilla.com> wrote:

```js
import * as fs from "fs"; // importing the named exports as an object
import Dict from "dict";  // importing a default export, same as ever
```


My first reaction is to think that a lot of developers will ask: why can't I do `import * from 'fs';`?

But it's easier to teach than the alternative. And I agree with the premises: ModuleImport should be there and it should be less convenient than using the default export.

Thanks David!

Juan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140619/be42d8e9/attachment-0001.html>


More information about the es-discuss mailing list