Modules: do re-exports also import?

Axel Rauschmayer axel at
Sun Aug 4 08:01:41 PDT 2013

My guess: if you re-export something from a module, then you still have to import it if you want to use it in that module. Is that correct?

Examples of re-exporting:

    export * from "crypto";                    // re-exporting another module's exports
    export { foo, bar } from "crypto";         // re-exporting specified exports from another module

That seems redundant. Maybe one could mark things that should be re-exported when importing them? On the other hand, this may be rare enough that it doesn’t warrant the extra syntax.

Dr. Axel Rauschmayer
axel at


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

More information about the es-discuss mailing list