{"action":"created","issue":{"url":"https://api.github.com/repos/ember-cli/ember-cli/issues/3556","labels_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/3556/labels{/name}","comments_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/3556/comments","events_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/3556/events","html_url":"https://github.com/ember-cli/ember-cli/issues/3556","id":62547536,"number":3556,"title":"ES6 is not transpiled in addon","user":{"login":"aceofspades","id":81255,"avatar_url":"https://avatars.githubusercontent.com/u/81255?v=3","gravatar_id":"","url":"https://api.github.com/users/aceofspades","html_url":"https://github.com/aceofspades","followers_url":"https://api.github.com/users/aceofspades/followers","following_url":"https://api.github.com/users/aceofspades/following{/other_user}","gists_url":"https://api.github.com/users/aceofspades/gists{/gist_id}","starred_url":"https://api.github.com/users/aceofspades/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aceofspades/subscriptions","organizations_url":"https://api.github.com/users/aceofspades/orgs","repos_url":"https://api.github.com/users/aceofspades/repos","events_url":"https://api.github.com/users/aceofspades/events{/privacy}","received_events_url":"https://api.github.com/users/aceofspades/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-18T00:12:02Z","updated_at":"2015-03-18T01:17:18Z","closed_at":null,"body":"Per https://github.com/babel/ember-cli-babel/issues/13#issuecomment-81176286 it was stated that ES6 in addons should be transpiled the same as with the hosting app.\r\n\r\nThis example has a simple component definition in both the app and addon, with an ES6 fat arrow function. For the app, it is transpiled, but not in the addon.\r\n\r\nTo see the issue:\r\n\r\n```\r\ngit clone git@github.com:aceofspades/es6-in-addon.git\r\ncd es6-in-addon/alpha\r\nember install\r\nember build\r\n```\r\n\r\nIn `alpha/dist/assets/alpha.js` the function is transpiled:\r\n```\r\ndouble: function (v) {\r\n  return v * 2;\r\n}\r\n```\r\n\r\nIn `alpha/dist/assets/vendor.js` it is not.\r\n```\r\ndouble: (v => v * 2)\r\n```"},"comment":{"url":"https://api.github.com/repos/ember-cli/ember-cli/issues/comments/82664014","html_url":"https://github.com/ember-cli/ember-cli/issues/3556#issuecomment-82664014","issue_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/3556","id":82664014,"user":{"login":"rwjblue","id":12637,"avatar_url":"https://avatars.githubusercontent.com/u/12637?v=3","gravatar_id":"","url":"https://api.github.com/users/rwjblue","html_url":"https://github.com/rwjblue","followers_url":"https://api.github.com/users/rwjblue/followers","following_url":"https://api.github.com/users/rwjblue/following{/other_user}","gists_url":"https://api.github.com/users/rwjblue/gists{/gist_id}","starred_url":"https://api.github.com/users/rwjblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwjblue/subscriptions","organizations_url":"https://api.github.com/users/rwjblue/orgs","repos_url":"https://api.github.com/users/rwjblue/repos","events_url":"https://api.github.com/users/rwjblue/events{/privacy}","received_events_url":"https://api.github.com/users/rwjblue/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T01:17:18Z","updated_at":"2015-03-18T01:17:18Z","body":"https://github.com/aceofspades/es6-in-addon/blob/master/alpha/package.json#L25  needs to be in deps, not dev deps."}}