{"action":"created","issue":{"url":"https://api.github.com/repos/gajus/prepack-webpack-plugin/issues/14","repository_url":"https://api.github.com/repos/gajus/prepack-webpack-plugin","labels_url":"https://api.github.com/repos/gajus/prepack-webpack-plugin/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/gajus/prepack-webpack-plugin/issues/14/comments","events_url":"https://api.github.com/repos/gajus/prepack-webpack-plugin/issues/14/events","html_url":"https://github.com/gajus/prepack-webpack-plugin/issues/14","id":226503987,"number":14,"title":"Conflict with UglifyJsPlugin","user":{"login":"FateRiddle","id":12005259,"avatar_url":"https://avatars2.githubusercontent.com/u/12005259?v=3","gravatar_id":"","url":"https://api.github.com/users/FateRiddle","html_url":"https://github.com/FateRiddle","followers_url":"https://api.github.com/users/FateRiddle/followers","following_url":"https://api.github.com/users/FateRiddle/following{/other_user}","gists_url":"https://api.github.com/users/FateRiddle/gists{/gist_id}","starred_url":"https://api.github.com/users/FateRiddle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FateRiddle/subscriptions","organizations_url":"https://api.github.com/users/FateRiddle/orgs","repos_url":"https://api.github.com/users/FateRiddle/repos","events_url":"https://api.github.com/users/FateRiddle/events{/privacy}","received_events_url":"https://api.github.com/users/FateRiddle/received_events","type":"User","site_admin":false},"labels":[{"id":597302413,"url":"https://api.github.com/repos/gajus/prepack-webpack-plugin/labels/duplicate","name":"duplicate","color":"cccccc","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-05-05T08:22:10Z","updated_at":"2017-05-05T09:08:29Z","closed_at":"2017-05-05T08:29:31Z","body":"```\r\nplugins: [\r\n    new PrepackPlugin(),\r\n    new webpack.optimize.UglifyJsPlugin({\r\n      sourceMap:true,\r\n      compress:true\r\n    })\r\n  ]\r\n```\r\nWill fire an error: \r\n```\r\nERROR in bundle.js from UglifyJs\r\nTypeError: Cannot read property 'section' of null\r\n```\r\nBut if I flip the order of applying plugins, everything is fine:\r\n```\r\nplugins: [\r\n    new webpack.optimize.UglifyJsPlugin({\r\n      sourceMap:true,\r\n      compress:true\r\n    }),\r\n    new PrepackPlugin()\r\n  ]\r\n```\r\nAnd if I turn off `sourceMap`, everything is also fine.\r\n\r\n```\r\nplugins: [\r\n    new PrepackPlugin(),\r\n    new webpack.optimize.UglifyJsPlugin({\r\n      compress:true\r\n    })\r\n  ]\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/gajus/prepack-webpack-plugin/issues/comments/299417484","html_url":"https://github.com/gajus/prepack-webpack-plugin/issues/14#issuecomment-299417484","issue_url":"https://api.github.com/repos/gajus/prepack-webpack-plugin/issues/14","id":299417484,"user":{"login":"FateRiddle","id":12005259,"avatar_url":"https://avatars2.githubusercontent.com/u/12005259?v=3","gravatar_id":"","url":"https://api.github.com/users/FateRiddle","html_url":"https://github.com/FateRiddle","followers_url":"https://api.github.com/users/FateRiddle/followers","following_url":"https://api.github.com/users/FateRiddle/following{/other_user}","gists_url":"https://api.github.com/users/FateRiddle/gists{/gist_id}","starred_url":"https://api.github.com/users/FateRiddle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FateRiddle/subscriptions","organizations_url":"https://api.github.com/users/FateRiddle/orgs","repos_url":"https://api.github.com/users/FateRiddle/repos","events_url":"https://api.github.com/users/FateRiddle/events{/privacy}","received_events_url":"https://api.github.com/users/FateRiddle/received_events","type":"User","site_admin":false},"created_at":"2017-05-05T09:08:29Z","updated_at":"2017-05-05T09:08:29Z","body":"@gajus  I look at the other issue, my issue is that I apply prepack before uglify and yields the problem, not the same issue."}}
{"actor":{"display_login":"FateRiddle"}}