mardi 5 mai 2015

Does ember-cli support object literal shorthands?

I caught the bug for es6 and started using the object literal method shorthand:

import Ember from 'ember';

export default Ember.Component.extend({
    didInsertElement() {
        // stuff I want to do once we're in the DOM
    }
})

but it chokes when running ember build --environment production. Thoughts?

Build failed.
Unexpected token punc «(», expected punc «:»




Aucun commentaire:

Enregistrer un commentaire