I just want to double check since I am trying to do this ES6 export default:
var Member = function(){}
export {
Member as default
};
JShint is error-ing out with this syntax (es6 enabled) but I thought it was valid. Is this really invalid or what is a valid way for writing a default export with the export syntax as
export {
Member
};
I was using this as reference: http://www.2ality.com/2014/09/es6-modules-final.html The example they gave was:
//------ module1.js ------
export default 123;
//------ module2.js ------
const D = 123;
export { D as default };
Why is this module2's 2nd line valid? (or is it?)