ember-cli-babel 0 editorconfig travis-ci Bower npm

Ember CLI plugin for Babel

ember-cli-babel Build Status

This Ember-CLI plugin uses Babel to allow you to use ES6 syntax with your Ember-CLI project.


npm install --save-dev ember-cli-babel


This plugin should work without any configuration after installing. By default it will take every .js file in your project and run it through the Babel transpiler to convert the ES6 code to ES5. Running existing ES5 code through the transpiler shouldn’t change the code at all (likely just a format change if it does).

If you need to customize the way that Babel transforms your code, you can do it by passing in any of the options found here. Example:

// Brocfile.js

var app = new EmberApp({
  babel: {
    // disable comments
    comments: false


Babel comes with a polyfill that includes a custom regenerator runtime and core.js. Many transformations will work without it, but for full support you must include the polyfill in your app. The Babel feature tour includes a note for features that require the polyfill to work.

To include it in your app, pass includePolyfill: true in your babel options.


Out of the box without a polyfill the following ES6 features are enabled:

Feature Supported
Arrows and Lexical This YES
Classes YES
Enhanced Object Literals YES
Template Strings YES
Destructuring YES
Default + Rest + Spread YES
Let + Const YES
Iterators + For..Of NO
Generators NO
Comprehensions YES
Unicode YES
Modules YES
Module Loaders NO
Map + Set + WeakMap + WeakSet NO
Proxies NO
Symbols NO
Subclassable Built-ins PARTIAL
Math + Number + String + Object APIs NO
Binary and Octal Literals PARTIAL
Promises NO
Reflect API NO
Tail Calls PARTIAL

See the Babel docs for more details

About Modules

Ember-CLI uses its own ES6 module transpiler for the custom Ember resolver that it uses. Because of that, this plugin disables Babel module compilation by blacklisting that transform. If you find that you want to use the Babel module transform instead of the Ember-CLI one, you’ll have to explicitly set compileModules to true in your configuration. If compileModules is anything other than true, this plugin will leave the module syntax compilation up to Ember-CLI.

Top Contributors

stefanpenner gordonkristan Turbo87 rwjblue sandersky dfreeman twokul hhff BrianSipple jschilli vitch patocallaghan sergiolepore fivetanley djchie greenkeeperio-bot


-   v5.1.10 zip tar
-   v5.1.9 zip tar
-   v5.1.8 zip tar
-   v5.1.6 zip tar
-   v5.1.5 zip tar
-   v5.1.4 zip tar
-   v5.1.3 zip tar
-   v5.1.2 zip tar
-   v5.1.1 zip tar
-   v5.1.0 zip tar
-   v5.0.0 zip tar
-   v4.3.3 zip tar
-   v4.3.0 zip tar
-   v4.2.0 zip tar
-   v4.0.1 zip tar
-   v3.0.0 zip tar
-   v0.2.2 zip tar
-   v0.2.1 zip tar
-   v0.2.0 zip tar