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 module.exports = A
(Maybe it is module.exports.A = A
?)
So is there an ES6 style module.export =
? Or the syntax remains still in ES6? Or that syntax is no more recommended in ES6?