Closed NoiSek closed 8 years ago
What version of Node are you using? Arrow functions and most ES6 is supported natively in Node now. That could be the issue.
Appears that was it, apparently I was on 0.12.4.
Homebrew on OS X supplies a version 70 releases behind the current stable version. Crazy.
Thanks!
Compiling JSX with the current version of babel-plugin-inferno currently fails and throws a SyntaxError.
Anecdotally, after going through all babel plugins with similar syntax, it appears all working examples are written in ES6. May or may not be related, but I solved my problem by removing a few "ES6-isms" as Babel kept running it as if it were ES5 and running into errors.
I won't speculate on why this fixes the problem, but I've opened a PR here so you can see what I had to change in order to get it to work.
Environment: