ES6 `export * from import`?

Yes, ES6 supports directly exporting imported modules:

export { name1, name2, …, nameN } from …;

export {FooAction, BarAction} from './action_creators/index.js'

You can also re-export all exports of the imported module using the * syntax:

export * from …;

export * from './action_creators/index.js';

More info on MDN.

Leave a Comment