When comparing ElixirScript vs Babel (6to5), the Slant community recommends Babel (6to5) for most people. In the question“What are the best languages that compile to JavaScript? ” Babel (6to5) is ranked 8th while ElixirScript is ranked 26th. The most important reason people chose Babel (6to5) is:
Babel will turn your ES6+ code into ES5 friendly code, so you can start using it right now without waiting for browser support.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro Clear syntax
Uncluttered, yet unambiguous syntax
Pro Great for concurrency
Leverages the existing Erlang BEAM VM
Pro Excellent community
The Elixir community has proved to be welcoming and very supportive.
Pro More familiar syntax
All of the benefits of Erlang; without as steep a learning curve of prolog based syntax. Elixir is heavily inspired by Ruby's syntax which many people love.
Pro Great documentation
Elixir's documentation is very good. It covers everything and always helps solving any problem you may have. It's also always available from the terminal.
Pro Support ES6(Harmony)
Babel will turn your ES6+ code into ES5 friendly code, so you can start using it right now without waiting for browser support.
Pro Plugins for custom features
Pro Future forward thinking
Cons
Con Generated ES5 is ugly and performs badly
Output looks far from handwritten ES5, is quite large with a lot of extra statements to execute.