When I see the compiled code by Babel, they do not seem to be equivalent. Actually, the former transforms to exports.A = A, which is not equivalent to mod
exports.A = A
mod
babel6 is not supported export default A to modules.export=A
export default A
modules.export=A
you should add a plugin