Rest spread in Ember Cli 2.14.2


#1

I just updated from 2.11 to 2.14.2 and now I’m getting Unexpected Token errors for the ... spread operator. Has the babel setup changed quite a bit since 11? And this eslint thing?


#2

@Donal_Byrne I just unlocked object rest spread myself (in ember-cli-babel 6+). Here is a commit to show what all is required if you are curious

https://github.com/ember-redux/guides/commit/ea316be8c69f77c95e1adaa51c867e1b60cd2d2e

TL;DR update your eslintrc, add the babel plugin to your ember-cli-build + package.json as you see below :slight_smile: