javascript - export {x as x} does not work with babeljs -


why pattern end in undefined when try import module:

export {machines machines} './machines'; 

if doing

export default function machines(state, action) {}  

then have default export, not named export. export default exports arbitrary expression, fact function has name machines has no effect on export behavior. format, do

export {default machines} './machines'; 

with export ... from format have in question, export have be:

export function machines(state, action) {}  

Comments

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -