{"action":"closed","issue":{"url":"https://api.github.com/repos/webpack/webpack/issues/7190","repository_url":"https://api.github.com/repos/webpack/webpack","labels_url":"https://api.github.com/repos/webpack/webpack/issues/7190/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack/issues/7190/comments","events_url":"https://api.github.com/repos/webpack/webpack/issues/7190/events","html_url":"https://github.com/webpack/webpack/issues/7190","id":320031832,"number":7190,"title":"Bundle still contains all exports after sideEffects: false ","user":{"login":"pravdomil","id":2387356,"avatar_url":"https://avatars2.githubusercontent.com/u/2387356?v=4","gravatar_id":"","url":"https://api.github.com/users/pravdomil","html_url":"https://github.com/pravdomil","followers_url":"https://api.github.com/users/pravdomil/followers","following_url":"https://api.github.com/users/pravdomil/following{/other_user}","gists_url":"https://api.github.com/users/pravdomil/gists{/gist_id}","starred_url":"https://api.github.com/users/pravdomil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pravdomil/subscriptions","organizations_url":"https://api.github.com/users/pravdomil/orgs","repos_url":"https://api.github.com/users/pravdomil/repos","events_url":"https://api.github.com/users/pravdomil/events{/privacy}","received_events_url":"https://api.github.com/users/pravdomil/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-05-03T18:32:13Z","updated_at":"2018-05-07T15:34:21Z","closed_at":"2018-05-07T15:34:21Z","author_association":"NONE","body":"<!-- Please don't delete this template or we'll close your issue -->\r\n<!-- Before creating an issue please make sure you are using the latest version of webpack. -->\r\n<!-- Also consider trying the webpack@beta version, maybe it's already fixed. -->\r\n\r\n**Do you want to request a *feature* or report a *bug*?**\r\npossible bug\r\n\r\n<!-- Please ask questions on StackOverflow or the webpack Gitter (https://gitter.im/webpack/webpack). -->\r\n<!-- Issues which contain questions or support requests will be closed. -->\r\n\r\n**What is the current behavior?**\r\nOutput bundle contains `index.js` `a.js` `b.js` `c.js` from `big-module`, and `a.js` `b.js` `c.js` from `big-module-with-flag`.\r\n\r\n```js\r\n/* 8 */\r\n/*!************************************************!*\\\r\n  !*** ./node_modules/big-module-with-flag/c.js ***!\r\n  \\************************************************/\r\n/*! exports provided: c */\r\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\r\n\r\n\"use strict\";\r\n__webpack_require__.r(__webpack_exports__);\r\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"c\", function() { return c; });\r\nconst c = \"c\";\r\n```\r\n\r\n**If the current behavior is a bug, please provide the steps to reproduce.**\r\nhttps://github.com/webpack/webpack/tree/master/examples/side-effects\r\n\r\n<!-- A great way to do this is to provide your configuration via a GitHub gist. -->\r\n<!-- Best provide a minimal reproduceable repo -->\r\n<!-- If your issue is caused by a plugin or loader file the issue on the plugin/loader repo -->\r\n\r\n**What is the expected behavior?**\r\nOutput bundle contains `index.js` `a.js` `b.js` `c.js` from `big-module`, and `a.js` and `b.js` **but not `c.js`** from `big-module-with-flag`.\r\n\r\n**If this is a feature request, what is motivation or use case for changing the behavior?**\r\nunsed imports are built (which can fail if you target specific target like `web`)\r\n\r\n**Please mention other relevant information such as the browser version, Node.js version, webpack version, and Operating System.**\r\nmacos10.13 node10 npm6 webpack4.6.0\r\n"}}
{"actor":{"display_login":"sokra"}}