{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack/issues/2867","repository_url":"https://api.github.com/repos/webpack/webpack","labels_url":"https://api.github.com/repos/webpack/webpack/issues/2867/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack/issues/2867/comments","events_url":"https://api.github.com/repos/webpack/webpack/issues/2867/events","html_url":"https://github.com/webpack/webpack/issues/2867","id":171022058,"number":2867,"title":"Tree shaking completely broken?","user":{"login":"VladShcherbin","id":6711845,"avatar_url":"https://avatars2.githubusercontent.com/u/6711845?v=3","gravatar_id":"","url":"https://api.github.com/users/VladShcherbin","html_url":"https://github.com/VladShcherbin","followers_url":"https://api.github.com/users/VladShcherbin/followers","following_url":"https://api.github.com/users/VladShcherbin/following{/other_user}","gists_url":"https://api.github.com/users/VladShcherbin/gists{/gist_id}","starred_url":"https://api.github.com/users/VladShcherbin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VladShcherbin/subscriptions","organizations_url":"https://api.github.com/users/VladShcherbin/orgs","repos_url":"https://api.github.com/users/VladShcherbin/repos","events_url":"https://api.github.com/users/VladShcherbin/events{/privacy}","received_events_url":"https://api.github.com/users/VladShcherbin/received_events","type":"User","site_admin":false},"labels":[{"id":1089820,"url":"https://api.github.com/repos/webpack/webpack/labels/bug","name":"bug","color":"fbca04","default":true},{"id":428472976,"url":"https://api.github.com/repos/webpack/webpack/labels/P1:%20Urgent","name":"P1: Urgent","color":"d93f0b","default":false},{"id":428472762,"url":"https://api.github.com/repos/webpack/webpack/labels/S4:%20Broken","name":"S4: Broken","color":"0052cc","default":false},{"id":90419071,"url":"https://api.github.com/repos/webpack/webpack/labels/webpack-2","name":"webpack-2","color":"c5def5","default":false},{"id":433080621,"url":"https://api.github.com/repos/webpack/webpack/labels/X3:%20discussion%20required","name":"X3: discussion required","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/webpack/webpack/milestones/13","html_url":"https://github.com/webpack/webpack/milestone/13","labels_url":"https://api.github.com/repos/webpack/webpack/milestones/13/labels","id":2200920,"number":13,"title":"webpack 2.4 Feature release","description":"","creator":{"login":"sokra","id":1365881,"avatar_url":"https://avatars3.githubusercontent.com/u/1365881?v=3","gravatar_id":"","url":"https://api.github.com/users/sokra","html_url":"https://github.com/sokra","followers_url":"https://api.github.com/users/sokra/followers","following_url":"https://api.github.com/users/sokra/following{/other_user}","gists_url":"https://api.github.com/users/sokra/gists{/gist_id}","starred_url":"https://api.github.com/users/sokra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sokra/subscriptions","organizations_url":"https://api.github.com/users/sokra/orgs","repos_url":"https://api.github.com/users/sokra/repos","events_url":"https://api.github.com/users/sokra/events{/privacy}","received_events_url":"https://api.github.com/users/sokra/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":2,"state":"open","created_at":"2016-12-16T14:38:28Z","updated_at":"2017-04-04T09:10:47Z","due_on":null,"closed_at":null},"comments":69,"created_at":"2016-08-13T18:48:24Z","updated_at":"2017-04-09T06:11:02Z","closed_at":null,"body":"_updated with the latest versions_\r\nWebpack - 2.2.0\r\nBabel es2015 preset - 6.18.0\r\nOS X 10.12.2\r\n\r\n**Current**\r\n\r\nTree shaking is not removing imports, not used in the app.\r\n\r\n**Expected**\r\n\r\nTree shaking, removing not used imports.\r\n\r\n---\r\n\r\nThe test case is a simple app with React & React Router v3. `Link` component is not used, but the whole router package is bundled.\r\n\r\n```js\r\nimport React from 'react'\r\nimport ReactDOM from 'react-dom'\r\nimport { Link } from 'react-router'\r\n\r\nReactDOM.render(\r\n  <p>Hey</p>,\r\n  document.getElementById('app')\r\n)\r\n```\r\n\r\n[Webpack & Rollup test repo](https://github.com/VladShcherbin/react-rollup-webpack-test)"},"comment":{"url":"https://api.github.com/repos/webpack/webpack/issues/comments/292766615","html_url":"https://github.com/webpack/webpack/issues/2867#issuecomment-292766615","issue_url":"https://api.github.com/repos/webpack/webpack/issues/2867","id":292766615,"user":{"login":"slikts","id":137872,"avatar_url":"https://avatars1.githubusercontent.com/u/137872?v=3","gravatar_id":"","url":"https://api.github.com/users/slikts","html_url":"https://github.com/slikts","followers_url":"https://api.github.com/users/slikts/followers","following_url":"https://api.github.com/users/slikts/following{/other_user}","gists_url":"https://api.github.com/users/slikts/gists{/gist_id}","starred_url":"https://api.github.com/users/slikts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slikts/subscriptions","organizations_url":"https://api.github.com/users/slikts/orgs","repos_url":"https://api.github.com/users/slikts/repos","events_url":"https://api.github.com/users/slikts/events{/privacy}","received_events_url":"https://api.github.com/users/slikts/received_events","type":"User","site_admin":false},"created_at":"2017-04-09T06:11:02Z","updated_at":"2017-04-09T06:11:02Z","body":"You mean articles like [this one](https://webpack.js.org/guides/tree-shaking/) in the official docs?"}}
{"actor":{"display_login":"slikts"}}