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
Post a Comment