{"action":"opened","issue":{"url":"https://api.github.com/repos/babel/babili/issues/287","repository_url":"https://api.github.com/repos/babel/babili","labels_url":"https://api.github.com/repos/babel/babili/issues/287/labels{/name}","comments_url":"https://api.github.com/repos/babel/babili/issues/287/comments","events_url":"https://api.github.com/repos/babel/babili/issues/287/events","html_url":"https://github.com/babel/babili/issues/287","id":191085372,"number":287,"title":"Improve replace + DCE w. surrounding blocks","user":{"login":"kangax","id":383,"avatar_url":"https://avatars.githubusercontent.com/u/383?v=3","gravatar_id":"","url":"https://api.github.com/users/kangax","html_url":"https://github.com/kangax","followers_url":"https://api.github.com/users/kangax/followers","following_url":"https://api.github.com/users/kangax/following{/other_user}","gists_url":"https://api.github.com/users/kangax/gists{/gist_id}","starred_url":"https://api.github.com/users/kangax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kangax/subscriptions","organizations_url":"https://api.github.com/users/kangax/orgs","repos_url":"https://api.github.com/users/kangax/repos","events_url":"https://api.github.com/users/kangax/events{/privacy}","received_events_url":"https://api.github.com/users/kangax/received_events","type":"User","site_admin":false},"labels":[{"id":354433521,"url":"https://api.github.com/repos/babel/babili/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-22T18:19:44Z","updated_at":"2016-11-22T18:19:44Z","closed_at":null,"body":"When Babili is run with replacements, such as to replace `console.log` with empty function, but there's surrounding block, that block is never removed:\r\n\r\n```\r\nif (!this.smth) {\r\n  console.log(\"foo bar\");\r\n}\r\n```"}}
{"actor":{"display_login":"kangax"}}