Q: babel exporting undefined when importing something When importing something all exports are exporting undefined when generated.
Like this:
import something from '';

export const word1 = 'Hello';
export const word2 = 'World';

Will generate this:
exports.word2 = exports.word1 = undefined;

I can reproduce it on babeljs.io
Anyone that can tell me how I can fix this? 
Maybe there is some plugin? or I should change the code?

A: All this statement does is to create the properties on the exports object. This happens before the imported modules are required - it's basically making the "hoisting" of the variables explicit.
The exported properties are then initialised later in the code.
