I'm using Babel 6.1.2
$ babel --version
6.1.2 (babel-core 6.1.2)
When I compile ES6 code with anoymous function, I found the code is not transpiled to ECMAScript 5 Syntax at all.
$ echo "()=>1" | babel
() => 1;
Does anyone have ideas about this? Thanks!