The proper way to use Babel in Atom packages?


Is there a canonical guideline for using Babel in your Atom packages?

I have found 3 different ways to do it:

  • "use 6to5"
  • "use babel"
  • /** @babel */

I’m being told that /** @babel */ is the way to go, but just wondering if there is a place in the documentation it says this.

Relevant GitHub issue #8416


Yeah, the “other half” of the documentation is pretty much the source code.
It looks like the last 2 options are good to go.

In atom

In apm


The "use 6to5" was the original method of doing it prior to the renaming of the project from “6to5” to “babel”. The other two methods are the canonical ways of doing it now.