{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel/issues/7879","repository_url":"https://api.github.com/repos/babel/babel","labels_url":"https://api.github.com/repos/babel/babel/issues/7879/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/7879/comments","events_url":"https://api.github.com/repos/babel/babel/issues/7879/events","html_url":"https://github.com/babel/babel/issues/7879","id":320883730,"node_id":"MDU6SXNzdWUzMjA4ODM3MzA=","number":7879,"title":"@babel/plugin-proposal-object-rest-spread not being detected at beta.46","user":{"login":"karlas","id":1649940,"node_id":"MDQ6VXNlcjE2NDk5NDA=","avatar_url":"https://avatars2.githubusercontent.com/u/1649940?v=4","gravatar_id":"","url":"https://api.github.com/users/karlas","html_url":"https://github.com/karlas","followers_url":"https://api.github.com/users/karlas/followers","following_url":"https://api.github.com/users/karlas/following{/other_user}","gists_url":"https://api.github.com/users/karlas/gists{/gist_id}","starred_url":"https://api.github.com/users/karlas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlas/subscriptions","organizations_url":"https://api.github.com/users/karlas/orgs","repos_url":"https://api.github.com/users/karlas/repos","events_url":"https://api.github.com/users/karlas/events{/privacy}","received_events_url":"https://api.github.com/users/karlas/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2018-05-07T17:15:58Z","updated_at":"2018-09-09T17:43:44Z","closed_at":"2018-05-22T19:03:52Z","author_association":"NONE","body":"### Babel/Babylon Configuration (.babelrc, package.json, cli command)\r\n<!--- If describing a bug, tell us what your babel configuration looks like -->\r\n.babelrc\r\n```js\r\n{\r\n  \"presets\": [\r\n    [\"@babel/env\", {\r\n      \"targets\": { \"node\": \"6.11.5\" }\r\n    }]\r\n  ],\r\n  \"plugins\": [\"@babel/plugin-proposal-object-rest-spread\"]\r\n}\r\n```\r\nCLI Command\r\n\r\n`babel 'functions/src' --out-dir 'functions/bundle' --copy-files --ignore 'functions/src/node_modules'\r\n`\r\n\r\n### Expected Behavior\r\nFiles are correctly built, as it did with beta.44\r\n\r\n### Current Behavior\r\nWith beta.46, following error arises:\r\n```\r\nError: SyntaxError: functions/src/common/getLocations.js: Support for the experimental syntax 'objectRestSpread' isn't currently enabled (77:19):\r\n\r\n  75 |         if (key === 'viewport'){\r\n  76 |           const { northeast, southwest } = geometry.viewport;\r\n> 77 |           return {...prev, bounds : {\r\n     |                   ^\r\n  78 |             ne : {\r\n  79 |               lat : northeast.lat,\r\n  80 |               lng : northeast.lng\r\n\r\nAdd @babel/plugin-proposal-object-rest-spread (https://git.io/vb4Ss) to the 'plugins' section of your Babel config to enable transformation.\r\n    at /Users/karlas/project/node_modules/@babel/cli/lib/babel/dir.js:185:22\r\n    at /Users/karlas/project/node_modules/@babel/cli/lib/babel/dir.js:148:23\r\n    at /Users/karlas/project/node_modules/@babel/cli/lib/babel/dir.js:120:23\r\n    at /Users/karlas/project/node_modules/@babel/cli/lib/babel/dir.js:82:23\r\n    at /Users/karlas/project/node_modules/@babel/cli/lib/babel/util.js:126:16\r\n    at runAsync (/Users/karlas/project/node_modules/@babel/core/lib/transformation/index.js:37:12)\r\n    at /Users/karlas/project/node_modules/@babel/core/lib/transform-file.js:56:36\r\n    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:511:3)\r\n```\r\n\r\n### Possible Solution\r\nCan't help...\r\n\r\n### Context\r\nJust transpiling about 20 files to be used on Firebase Functions\r\n\r\n### Your Environment\r\n<!--- Include as many relevant details about the environment you experienced the bug in -->\r\n\r\n| software         | version(s)\r\n| ---------------- | -------\r\n| Babel            |  7.0.0-beta.46\r\n| node             |  8.11.1\r\n| npm              |  5.6.0\r\n| yarn              | 1.6.0\r\n| Operating System | macOS High Sierra\r\n"},"comment":{"url":"https://api.github.com/repos/babel/babel/issues/comments/419732313","html_url":"https://github.com/babel/babel/issues/7879#issuecomment-419732313","issue_url":"https://api.github.com/repos/babel/babel/issues/7879","id":419732313,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTczMjMxMw==","user":{"login":"JamesTheHacker","id":19844560,"node_id":"MDQ6VXNlcjE5ODQ0NTYw","avatar_url":"https://avatars2.githubusercontent.com/u/19844560?v=4","gravatar_id":"","url":"https://api.github.com/users/JamesTheHacker","html_url":"https://github.com/JamesTheHacker","followers_url":"https://api.github.com/users/JamesTheHacker/followers","following_url":"https://api.github.com/users/JamesTheHacker/following{/other_user}","gists_url":"https://api.github.com/users/JamesTheHacker/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesTheHacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesTheHacker/subscriptions","organizations_url":"https://api.github.com/users/JamesTheHacker/orgs","repos_url":"https://api.github.com/users/JamesTheHacker/repos","events_url":"https://api.github.com/users/JamesTheHacker/events{/privacy}","received_events_url":"https://api.github.com/users/JamesTheHacker/received_events","type":"User","site_admin":false},"created_at":"2018-09-09T17:43:44Z","updated_at":"2018-09-09T17:43:44Z","author_association":"NONE","body":"2 hours wasted pulling my hair out with this one. This should probably be in big bold letters at the head of the repo 🤣 It's going to trip a lot of people up."}}
{"actor":{"display_login":"JamesTheHacker"}}