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

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -