Q:

ES6, how can you export an imported module in a single line?

I'd like to the following but with a single line, if possible:

import Module from './Module/Module;'
export Module;

I tried the following but it doesn't seem to work:

export Module from './Module/Module;

A:

export {default as Module} from './Module/Module';

is the standard ES6 way, as long as you don't need Module to also be available inside the module doing the exporting.
export Module from './Module/Module';

is a proposed ESnext way to do it, but that only works if you've enabled it in Babel for now.

A:

I don't know why but just this works for me : 
components/index.js:
import Component from './Component';
import Component2 from './Component2';
import Component3 from './Component3';
import Component4 from './Component4';

export {Component, Component2, Component3, Component4};

I import the exports like this : 
import {Component, Component2, Component3, Component4} from '../components';

A:

Please note you can also re-export everything from a module:
export * from './Module/Module';

