{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack/issues/6409","repository_url":"https://api.github.com/repos/webpack/webpack","labels_url":"https://api.github.com/repos/webpack/webpack/issues/6409/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack/issues/6409/comments","events_url":"https://api.github.com/repos/webpack/webpack/issues/6409/events","html_url":"https://github.com/webpack/webpack/issues/6409","id":292466061,"node_id":"MDU6SXNzdWUyOTI0NjYwNjE=","number":6409,"title":"TypeError: webpack.optimize.UglifyJsPlugin is not a constructor","user":{"login":"bfred-it","id":1402241,"node_id":"MDQ6VXNlcjE0MDIyNDE=","avatar_url":"https://avatars3.githubusercontent.com/u/1402241?v=4","gravatar_id":"","url":"https://api.github.com/users/bfred-it","html_url":"https://github.com/bfred-it","followers_url":"https://api.github.com/users/bfred-it/followers","following_url":"https://api.github.com/users/bfred-it/following{/other_user}","gists_url":"https://api.github.com/users/bfred-it/gists{/gist_id}","starred_url":"https://api.github.com/users/bfred-it/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bfred-it/subscriptions","organizations_url":"https://api.github.com/users/bfred-it/orgs","repos_url":"https://api.github.com/users/bfred-it/repos","events_url":"https://api.github.com/users/bfred-it/events{/privacy}","received_events_url":"https://api.github.com/users/bfred-it/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":26,"created_at":"2018-01-29T16:12:31Z","updated_at":"2018-07-23T11:16:00Z","closed_at":"2018-04-04T15:30:15Z","author_association":"NONE","body":"This is in **`webpack@4.0.0-beta.0`**\r\n\r\n<!-- 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\n\r\n**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\n\r\n```\r\nTypeError: webpack.optimize.UglifyJsPlugin is not a constructor\r\n```\r\n\r\n**If the current behavior is a bug, please provide the steps to reproduce.**\r\n\r\n```js\r\nconst webpack = require('webpack');\r\nnew webpack.optimize.UglifyJsPlugin()\r\n```\r\n\r\nAlso:\r\n\r\n```sh\r\n$ npm i webpack@4.0.0-beta.0\r\n$ node -e 'console.log(require(\"webpack\").optimize)'\r\n\r\n{ AggressiveMergingPlugin: [Getter],\r\n  AggressiveSplittingPlugin: [Getter],\r\n  ChunkModuleIdRangePlugin: [Getter],\r\n  LimitChunkCountPlugin: [Getter],\r\n  MinChunkSizePlugin: [Getter],\r\n  ModuleConcatenationPlugin: [Getter],\r\n  OccurrenceOrderPlugin: [Getter],\r\n  RuntimeChunkPlugin: [Getter],\r\n  SideEffectsFlagPlugin: [Getter],\r\n  SplitChunksPlugin: [Getter] }\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\n\r\n`webpack.optimize.UglifyJsPlugin === function`\r\n\r\n**Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.**\r\n\r\n\r\n❯ node v8.6.0\r\n❯ npm 5.6.0\r\n❯ webpack 4.0.0-beta.0"},"comment":{"url":"https://api.github.com/repos/webpack/webpack/issues/comments/407023067","html_url":"https://github.com/webpack/webpack/issues/6409#issuecomment-407023067","issue_url":"https://api.github.com/repos/webpack/webpack/issues/6409","id":407023067,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzAyMzA2Nw==","user":{"login":"evilebottnawi","id":4567934,"node_id":"MDQ6VXNlcjQ1Njc5MzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/4567934?v=4","gravatar_id":"","url":"https://api.github.com/users/evilebottnawi","html_url":"https://github.com/evilebottnawi","followers_url":"https://api.github.com/users/evilebottnawi/followers","following_url":"https://api.github.com/users/evilebottnawi/following{/other_user}","gists_url":"https://api.github.com/users/evilebottnawi/gists{/gist_id}","starred_url":"https://api.github.com/users/evilebottnawi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evilebottnawi/subscriptions","organizations_url":"https://api.github.com/users/evilebottnawi/orgs","repos_url":"https://api.github.com/users/evilebottnawi/repos","events_url":"https://api.github.com/users/evilebottnawi/events{/privacy}","received_events_url":"https://api.github.com/users/evilebottnawi/received_events","type":"User","site_admin":false},"created_at":"2018-07-23T11:16:00Z","updated_at":"2018-07-23T11:16:00Z","author_association":"MEMBER","body":"@D19cannon seriously? You use `const UglifyJsPlugin = require('uglifyjs-webpack-plugin')` in top, but in `minimizer` option you use `UglifyJSPlugin`. Looks on `s` in plugin  name (first example with lowercase, second in UPPERCASE)\r\n"}}
{"actor":{"display_login":"evilebottnawi"}}