{"action":"created","issue":{"url":"https://api.github.com/repos/davidguttman/cssify/issues/43","labels_url":"https://api.github.com/repos/davidguttman/cssify/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/davidguttman/cssify/issues/43/comments","events_url":"https://api.github.com/repos/davidguttman/cssify/issues/43/events","html_url":"https://github.com/davidguttman/cssify/issues/43","id":123961585,"number":43,"title":"modules: Cannot read property 'debug' of undefined","user":{"login":"ahdinosaur","id":719605,"avatar_url":"https://avatars.githubusercontent.com/u/719605?v=3","gravatar_id":"","url":"https://api.github.com/users/ahdinosaur","html_url":"https://github.com/ahdinosaur","followers_url":"https://api.github.com/users/ahdinosaur/followers","following_url":"https://api.github.com/users/ahdinosaur/following{/other_user}","gists_url":"https://api.github.com/users/ahdinosaur/gists{/gist_id}","starred_url":"https://api.github.com/users/ahdinosaur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahdinosaur/subscriptions","organizations_url":"https://api.github.com/users/ahdinosaur/orgs","repos_url":"https://api.github.com/users/ahdinosaur/repos","events_url":"https://api.github.com/users/ahdinosaur/events{/privacy}","received_events_url":"https://api.github.com/users/ahdinosaur/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-27T05:35:29Z","updated_at":"2015-12-27T12:03:03Z","closed_at":null,"body":"after enabling css modules with \r\n\r\n```json\r\n{\r\n  \"browserify\": {\r\n    \"transform\": [\r\n      [\"cssify\", { \"modules\": true } ]\r\n    ]\r\n  }\r\n}\r\n```\r\n\r\ni got this error caused by [this line](https://github.com/davidguttman/cssify/blob/master/lib/process-css.js#L54)\r\n\r\n```\r\nTypeError: Cannot read property 'debug' of undefined\r\n    at processCss (/.../node_modules/cssify/lib/process-css.js:54:51)\r\n    at DestroyableTransform._flush (/.../node_modules/cssify/lib/index.js:23:7)\r\n    at DestroyableTransform.<anonymous> (/.../node_modules/readable-stream/lib/_stream_transform.js:123:12)\r\n    at DestroyableTransform.g (events.js:260:16)\r\n    at emitNone (events.js:67:13)\r\n    at DestroyableTransform.emit (events.js:166:7)\r\n    at prefinish (/.../node_modules/readable-stream/lib/_stream_writable.js:499:12)\r\n    at finishMaybe (/.../node_modules/readable-stream/lib/_stream_writable.js:507:7)\r\n    at endWritable (/.../node_modules/readable-stream/lib/_stream_writable.js:519:3)\r\n    at DestroyableTransform.Writable.end (/.../node_modules/readable-stream/lib/_stream_writable.js:484:5)\r\n```\r\n\r\na temporary hotfix is\r\n\r\n```json\r\n{\r\n  \"browserify\": {\r\n    \"transform\": [\r\n      [\"cssify\", { \"modules\": true, \"_flags\": { \"debug\": true } } ]\r\n    ]\r\n  }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/davidguttman/cssify/issues/comments/167404545","html_url":"https://github.com/davidguttman/cssify/issues/43#issuecomment-167404545","issue_url":"https://api.github.com/repos/davidguttman/cssify/issues/43","id":167404545,"user":{"login":"ahdinosaur","id":719605,"avatar_url":"https://avatars.githubusercontent.com/u/719605?v=3","gravatar_id":"","url":"https://api.github.com/users/ahdinosaur","html_url":"https://github.com/ahdinosaur","followers_url":"https://api.github.com/users/ahdinosaur/followers","following_url":"https://api.github.com/users/ahdinosaur/following{/other_user}","gists_url":"https://api.github.com/users/ahdinosaur/gists{/gist_id}","starred_url":"https://api.github.com/users/ahdinosaur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahdinosaur/subscriptions","organizations_url":"https://api.github.com/users/ahdinosaur/orgs","repos_url":"https://api.github.com/users/ahdinosaur/repos","events_url":"https://api.github.com/users/ahdinosaur/events{/privacy}","received_events_url":"https://api.github.com/users/ahdinosaur/received_events","type":"User","site_admin":false},"created_at":"2015-12-27T12:03:03Z","updated_at":"2015-12-27T12:03:03Z","body":"hmm, true. and from the [last line of the browserify transform docs](https://github.com/substack/node-browserify#btransformtr-opts):\r\n\r\n> Options sent to the browserify constructor are also provided under opts._flags. These browserify options are sometimes required if your transform needs to do something different when browserify is run in debug mode, for example.\r\n\r\nso maybe this is a bug."}}