{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel/issues/8136","repository_url":"https://api.github.com/repos/babel/babel","labels_url":"https://api.github.com/repos/babel/babel/issues/8136/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/8136/comments","events_url":"https://api.github.com/repos/babel/babel/issues/8136/events","html_url":"https://github.com/babel/babel/issues/8136","id":330895148,"node_id":"MDU6SXNzdWUzMzA4OTUxNDg=","number":8136,"title":"spread-operator doesn't transform to ES5","user":{"login":"dislido","id":25094788,"node_id":"MDQ6VXNlcjI1MDk0Nzg4","avatar_url":"https://avatars2.githubusercontent.com/u/25094788?v=4","gravatar_id":"","url":"https://api.github.com/users/dislido","html_url":"https://github.com/dislido","followers_url":"https://api.github.com/users/dislido/followers","following_url":"https://api.github.com/users/dislido/following{/other_user}","gists_url":"https://api.github.com/users/dislido/gists{/gist_id}","starred_url":"https://api.github.com/users/dislido/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dislido/subscriptions","organizations_url":"https://api.github.com/users/dislido/orgs","repos_url":"https://api.github.com/users/dislido/repos","events_url":"https://api.github.com/users/dislido/events{/privacy}","received_events_url":"https://api.github.com/users/dislido/received_events","type":"User","site_admin":false},"labels":[{"id":711599268,"node_id":"MDU6TGFiZWw3MTE1OTkyNjg=","url":"https://api.github.com/repos/babel/babel/labels/Spec:%20Optional%20Chaining","name":"Spec: Optional Chaining","color":"1d76db","default":false},{"id":440210152,"node_id":"MDU6TGFiZWw0NDAyMTAxNTI=","url":"https://api.github.com/repos/babel/babel/labels/i:%20bug","name":"i: bug","color":"e99695","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-06-09T15:15:20Z","updated_at":"2018-06-14T13:59:48Z","closed_at":null,"author_association":"NONE","body":"## Bug Report\r\n\r\n**Current Behavior**\r\nspread-operator doesn't transform to ES5 \r\n\r\n```js\r\n\"use strict\";\r\n\r\nvar _arr;\r\n\r\n_arr = [1, 2, 3].map(function (e) {\r\n  return Math.pow(e, 2);\r\n}), Math === null || Math === void 0 ? void 0 : Math.max(..._arr);\r\n```\r\n**Input Code**\r\n```js\r\n[1, 2, 3].map(e => e ** 2) |> (arr => Math?.max(...arr))\r\n```\r\n\r\n**Expected behavior/code**\r\n```js\r\n\"use strict\";\r\n\r\nvar _arr;\r\n\r\n_arr = [1, 2, 3].map(function (e) {\r\n  return Math.pow(e, 2);\r\n}), Math === null || Math === void 0 ? void 0 : Math.max.apply(Math, _arr);\r\n```\r\n\r\n**Babel Configuration (.babelrc, package.json, cli command)**\r\n\r\n```js\r\nconst presetEnv = require('@babel/preset-env');\r\nconst presetStage0 = require('@babel/preset-stage-0');\r\n{\r\n  presets: [\r\n    [presetEnv, { targets: { browsers: ['ie >= 9'] } }],\r\n    [presetStage0, { decoratorsLegacy: true }],\r\n  ],\r\n}\r\n```\r\n\r\n**Environment**\r\n- Babel version(s): v7.0.0-beta.49\r\n- Node/npm version: Node 10.0.0/npm 5.6.0\r\n- OS: Windows 7\r\n- Monorepo yes\r\n- How you are using Babel: `babel.transform`\r\n\r\n**Possible Solution**\r\n<!--- Only if you have suggestions on a fix for the bug -->\r\n\r\n**Additional context/Screenshots**\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/babel/babel/issues/comments/397305972","html_url":"https://github.com/babel/babel/issues/8136#issuecomment-397305972","issue_url":"https://api.github.com/repos/babel/babel/issues/8136","id":397305972,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzMwNTk3Mg==","user":{"login":"microbouji","id":2972085,"node_id":"MDQ6VXNlcjI5NzIwODU=","avatar_url":"https://avatars1.githubusercontent.com/u/2972085?v=4","gravatar_id":"","url":"https://api.github.com/users/microbouji","html_url":"https://github.com/microbouji","followers_url":"https://api.github.com/users/microbouji/followers","following_url":"https://api.github.com/users/microbouji/following{/other_user}","gists_url":"https://api.github.com/users/microbouji/gists{/gist_id}","starred_url":"https://api.github.com/users/microbouji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/microbouji/subscriptions","organizations_url":"https://api.github.com/users/microbouji/orgs","repos_url":"https://api.github.com/users/microbouji/repos","events_url":"https://api.github.com/users/microbouji/events{/privacy}","received_events_url":"https://api.github.com/users/microbouji/received_events","type":"User","site_admin":false},"created_at":"2018-06-14T13:59:48Z","updated_at":"2018-06-14T13:59:48Z","author_association":"NONE","body":"I'd like to give this a try if it's not urgent. It would be my first PR so it will probably take some time."}}
{"actor":{"display_login":"microbouji"}}