{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack/issues/1385","labels_url":"https://api.github.com/repos/webpack/webpack/issues/1385/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack/issues/1385/comments","events_url":"https://api.github.com/repos/webpack/webpack/issues/1385/events","html_url":"https://github.com/webpack/webpack/issues/1385","id":102685498,"number":1385,"title":"throwing an error if I disable source map in uglifyjs plugin","user":{"login":"deezahyn","id":532797,"avatar_url":"https://avatars.githubusercontent.com/u/532797?v=3","gravatar_id":"","url":"https://api.github.com/users/deezahyn","html_url":"https://github.com/deezahyn","followers_url":"https://api.github.com/users/deezahyn/followers","following_url":"https://api.github.com/users/deezahyn/following{/other_user}","gists_url":"https://api.github.com/users/deezahyn/gists{/gist_id}","starred_url":"https://api.github.com/users/deezahyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deezahyn/subscriptions","organizations_url":"https://api.github.com/users/deezahyn/orgs","repos_url":"https://api.github.com/users/deezahyn/repos","events_url":"https://api.github.com/users/deezahyn/events{/privacy}","received_events_url":"https://api.github.com/users/deezahyn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-24T01:59:41Z","updated_at":"2015-08-27T02:26:40Z","closed_at":null,"body":"I think this is a more appropriate location to file this issue:\r\nhttps://github.com/webpack/extract-text-webpack-plugin/issues/98\r\n\r\nI disabled extract text plugin and it still gives an error.  Its probably in webpack.\r\n\r\nSo just re posting this:\r\n\r\n I get an error if I turn off source map in \r\n\r\n```javascript\r\nnew webpack.optimize.UglifyJsPlugin({\r\n    compress: {\r\n        warnings: false\r\n    }\r\n    , sourceMap: false\r\n  })\r\n```\r\n\r\nI'm trying to disable source map since my build takes 5 minutes long.  Removing it yields 1 minute 40 seconds.\r\n\r\nHere's part of my stack trace\r\n```javascript\r\nERROR in bundle.js from UglifyJs\r\nTypeError: Cannot read property 'sections' of null\r\n    at new SourceMapConsumer (/var/www/project/node_modules/webpack/node_modules/webpack-core/node_modules/source-map/lib/source-map/source-map-consumer.js:24:21)\r\n    at /var/www/project/node_modules/webpack/lib/optimize/UglifyJsPlugin.js:62:23\r\n    at Array.forEach (native)\r\n    at Tapable.<anonymous> (/var/www/project/node_modules/webpack/lib/optimize/UglifyJsPlugin.js:44:10)\r\n    at Tapable.next (/var/www/project/node_modules/webpack/node_modules/tapable/lib/Tapable.js:69:14)\r\n    at Tapable.<anonymous> (/var/www/project/node_modules/webpack/lib/optimize/UglifyJsPlugin.js:136:4)\r\n    at Tapable.applyPluginsAsync (/var/www/project/node_modules/webpack/node_modules/tapable/lib/Tapable.js:71:13)\r\n    at Tapable.<anonymous> (/var/www/project/node_modules/webpack/lib/Compilation.js:564:9)\r\n    at Tapable.next (/var/www/project/node_modules/webpack/node_modules/tapable/lib/Tapable.js:67:11)\r\n    at ExtractTextPlugin.<anonymous> (/var/www/project/node_modules/extract-text-webpack-plugin/index.js:303:4)\r\n    at Tapable.applyPluginsAsync (/var/www/project/node_modules/webpack/node_modules/tapable/lib/Tapable.js:71:13)\r\n    at Tapable.<anonymous> (/var/www/project/node_modules/webpack/lib/Compilation.js:560:8)\r\n    at Tapable.next (/var/www/project/node_modules/webpack/node_modules/tapable/lib/Tapable.js:67:11)\r\n    at ExtractTextPlugin.<anonymous> (/var/www/project/node_modules/extract-text-webpack-plugin/index.js:279:5)\r\n    at /var/www/project/node_modules/extract-text-webpack-plugin/node_modules/async/lib/async.js:52:16\r\n    at done (/var/www/project/node_modules/extract-text-webpack-plugin/node_modules/async/lib/async.js:248:21)\r\n    at /var/www/project/node_modules/extract-text-webpack-plugin/node_modules/async/lib/async.js:44:16\r\n    at /var/www/project/node_modules/extract-text-webpack-plugin/index.js:270:6\r\n    at /var/www/project/node_modules/extract-text-webpack-plugin/node_modules/async/lib/async.js:52:16\r\n    at done (/var/www/project/node_modules/extract-text-webpack-plugin/node_modules/async/lib/async.js:248:21)\r\n    at /var/www/project/node_modules/extract-text-webpack-plugin/node_modules/async/lib/async.js:44:16\r\n    at /var/www/project/node_modules/extract-text-webpack-plugin/index.js:267:13\r\n    at /var/www/project/node_modules/extract-text-webpack-plugin/node_modules/async/lib/async.js:187:20\r\n    at /var/www/project/node_modules/extract-text-webpack-plugin/node_modules/async/lib/async.js:239:13\r\n    at _arrayEach (/var/www/project/node_modules/extract-text-webpack-plugin/node_modules/async/lib/async.js:91:13)\r\n    at _each (/var/www/project/node_modules/extract-text-webpack-plugin/node_modules/async/lib/async.js:82:13)\r\n    at Object.async.forEachOf.async.eachOf (/var/www/project/node_modules/extract-text-webpack-plugin/node_modules/async/lib/async.js:238:9)\r\n    at Object.async.forEach.async.each (/var/www/project/node_modules/extract-text-webpack-plugin/node_modules/async/lib/async.js:215:22)\r\n    at /var/www/project/node_modules/extract-text-webpack-plugin/index.js:241:11\r\n    at /var/www/project/node_modules/extract-text-webpack-plugin/node_modules/async/lib/async.js:187:20\r\n```"},"comment":{"url":"https://api.github.com/repos/webpack/webpack/issues/comments/135255677","html_url":"https://github.com/webpack/webpack/issues/1385#issuecomment-135255677","issue_url":"https://api.github.com/repos/webpack/webpack/issues/1385","id":135255677,"user":{"login":"deezahyn","id":532797,"avatar_url":"https://avatars.githubusercontent.com/u/532797?v=3","gravatar_id":"","url":"https://api.github.com/users/deezahyn","html_url":"https://github.com/deezahyn","followers_url":"https://api.github.com/users/deezahyn/followers","following_url":"https://api.github.com/users/deezahyn/following{/other_user}","gists_url":"https://api.github.com/users/deezahyn/gists{/gist_id}","starred_url":"https://api.github.com/users/deezahyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deezahyn/subscriptions","organizations_url":"https://api.github.com/users/deezahyn/orgs","repos_url":"https://api.github.com/users/deezahyn/repos","events_url":"https://api.github.com/users/deezahyn/events{/privacy}","received_events_url":"https://api.github.com/users/deezahyn/received_events","type":"User","site_admin":false},"created_at":"2015-08-27T02:26:40Z","updated_at":"2015-08-27T02:26:40Z","body":"@sokra I've setup a sample repo to reproduce the bug:\r\nhttps://github.com/deezahyn/webpack-production-test"}}