{"action":"created","issue":{"url":"https://api.github.com/repos/scalableminds/amd-optimize/issues/34","labels_url":"https://api.github.com/repos/scalableminds/amd-optimize/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/scalableminds/amd-optimize/issues/34/comments","events_url":"https://api.github.com/repos/scalableminds/amd-optimize/issues/34/events","html_url":"https://github.com/scalableminds/amd-optimize/issues/34","id":53295427,"number":34,"title":"Add support for function(require, exports, module){} syntax","user":{"login":"kirill-konshin","id":1530410,"avatar_url":"https://avatars.githubusercontent.com/u/1530410?v=3","gravatar_id":"","url":"https://api.github.com/users/kirill-konshin","html_url":"https://github.com/kirill-konshin","followers_url":"https://api.github.com/users/kirill-konshin/followers","following_url":"https://api.github.com/users/kirill-konshin/following{/other_user}","gists_url":"https://api.github.com/users/kirill-konshin/gists{/gist_id}","starred_url":"https://api.github.com/users/kirill-konshin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirill-konshin/subscriptions","organizations_url":"https://api.github.com/users/kirill-konshin/orgs","repos_url":"https://api.github.com/users/kirill-konshin/repos","events_url":"https://api.github.com/users/kirill-konshin/events{/privacy}","received_events_url":"https://api.github.com/users/kirill-konshin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-03T05:57:33Z","updated_at":"2015-01-09T19:16:51Z","closed_at":"2015-01-09T19:16:51Z","body":"Currently code like\r\n\r\n```js\r\ndefine(function(require, exports, module) {\r\n\r\n    require('angular-ui-router');\r\n\r\n    module.exports = require('angular').module('ui.router');\r\n\r\n});\r\n```\r\n\r\nwill be transformed into\r\n\r\n```js\r\ndefine('contrib/angular-ui-router', [\r\n    'angular-ui-router',\r\n    'angular'\r\n], function (require, exports, module) {\r\n    require('angular-ui-router');\r\n    module.exports = require('angular').module('ui.router');\r\n});\r\n```\r\n\r\nWhich obviously will cause errors.\r\n\r\nI might be wrong, but it is supposed to be something like:\r\n\r\n```js\r\ndefine('contrib/angular-ui-router', [\r\n    'require', 'exports', 'module',\r\n    'angular-ui-router',\r\n    'angular'\r\n], function (require, exports, module) {\r\n    require('angular-ui-router');\r\n    module.exports = require('angular').module('ui.router');\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/scalableminds/amd-optimize/issues/comments/69383660","html_url":"https://github.com/scalableminds/amd-optimize/issues/34#issuecomment-69383660","issue_url":"https://api.github.com/repos/scalableminds/amd-optimize/issues/34","id":69383660,"user":{"login":"normanrz","id":335438,"avatar_url":"https://avatars.githubusercontent.com/u/335438?v=3","gravatar_id":"","url":"https://api.github.com/users/normanrz","html_url":"https://github.com/normanrz","followers_url":"https://api.github.com/users/normanrz/followers","following_url":"https://api.github.com/users/normanrz/following{/other_user}","gists_url":"https://api.github.com/users/normanrz/gists{/gist_id}","starred_url":"https://api.github.com/users/normanrz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/normanrz/subscriptions","organizations_url":"https://api.github.com/users/normanrz/orgs","repos_url":"https://api.github.com/users/normanrz/repos","events_url":"https://api.github.com/users/normanrz/events{/privacy}","received_events_url":"https://api.github.com/users/normanrz/received_events","type":"User","site_admin":false},"created_at":"2015-01-09T19:16:51Z","updated_at":"2015-01-09T19:16:51Z","body":"This was fixed by @komputerwiz's PR #37. Thanks!"}}