Juan Ignacio Dopazo jdopazo at
Thu Jun 19 07:18:00 PDT 2014

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

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!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list