{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel/issues/2996","labels_url":"https://api.github.com/repos/babel/babel/issues/2996/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/2996/comments","events_url":"https://api.github.com/repos/babel/babel/issues/2996/events","html_url":"https://github.com/babel/babel/issues/2996","id":116433460,"number":2996,"title":"Object rest spread not working correctly.","user":{"login":"TylorS","id":6282473,"avatar_url":"https://avatars.githubusercontent.com/u/6282473?v=3","gravatar_id":"","url":"https://api.github.com/users/TylorS","html_url":"https://github.com/TylorS","followers_url":"https://api.github.com/users/TylorS/followers","following_url":"https://api.github.com/users/TylorS/following{/other_user}","gists_url":"https://api.github.com/users/TylorS/gists{/gist_id}","starred_url":"https://api.github.com/users/TylorS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TylorS/subscriptions","organizations_url":"https://api.github.com/users/TylorS/orgs","repos_url":"https://api.github.com/users/TylorS/repos","events_url":"https://api.github.com/users/TylorS/events{/privacy}","received_events_url":"https://api.github.com/users/TylorS/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-11T22:18:33Z","updated_at":"2015-11-11T22:23:31Z","closed_at":null,"body":"A few of us (@Frikki, @Cmdv) working on updating dependencies at https://github.com/cyclejs/cycle-dom, in particular the auto-scope branch, have run into a issue where object-rest-spread works with babel 5.8 but no longer works with 6.1.4.\r\n\r\n.babelrc\r\n```json\r\n{\r\n \"presets\": [ \"es2015\" ],\r\n \"plugins\": [\r\n    \"syntax-object-rest-spread\",\r\n    \"transform-object-rest-spread\"\r\n  ]\r\n}\r\n```\r\n\r\nUsing the above .babelrc does not allow for this usage\r\n\r\n```js\r\nimport h from 'snabbdom/h'\r\nconst hh = require('hyperscript-helpers')(h)\r\n....\r\n...\r\nexport {\r\n  h,\r\n  ...hh\r\n}\r\n\r\n```\r\n\r\n`hh` is an object which can be destructured like so and works as expected\r\n```js\r\nconst { div, span, h1, p } = hh;\r\n```\r\n\r\nThank you for your time, and hope to hear from you guys soon!"},"comment":{"url":"https://api.github.com/repos/babel/babel/issues/comments/155928482","html_url":"https://github.com/babel/babel/issues/2996#issuecomment-155928482","issue_url":"https://api.github.com/repos/babel/babel/issues/2996","id":155928482,"user":{"login":"hzoo","id":588473,"avatar_url":"https://avatars.githubusercontent.com/u/588473?v=3","gravatar_id":"","url":"https://api.github.com/users/hzoo","html_url":"https://github.com/hzoo","followers_url":"https://api.github.com/users/hzoo/followers","following_url":"https://api.github.com/users/hzoo/following{/other_user}","gists_url":"https://api.github.com/users/hzoo/gists{/gist_id}","starred_url":"https://api.github.com/users/hzoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hzoo/subscriptions","organizations_url":"https://api.github.com/users/hzoo/orgs","repos_url":"https://api.github.com/users/hzoo/repos","events_url":"https://api.github.com/users/hzoo/events{/privacy}","received_events_url":"https://api.github.com/users/hzoo/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T22:23:31Z","updated_at":"2015-11-11T22:23:31Z","body":"Are you getting a syntax error? I'm getting a syntax error for that in the [repl](http://babeljs.io/repl/#?experimental=true&evaluate=false&loose=false&spec=false&code=import%20h%20from%20'snabbdom%2Fh'%0Aconst%20hh%20%3D%20require('hyperscript-helpers')(h)%0A%0Aexport%20%7B%0A%20%20h%2C%0A%20%20...hh%0A%7D%3B) and in http://astexplorer.net/ which both use babel 5.x"}}