{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/406","labels_url":"https://api.github.com/repos/facebook/react-native/issues/406/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/406/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/406/events","html_url":"https://github.com/facebook/react-native/issues/406","id":64967333,"number":406,"title":"Some NPM packages don't work","user":{"login":"bmcmahen","id":1236841,"avatar_url":"https://avatars.githubusercontent.com/u/1236841?v=3","gravatar_id":"","url":"https://api.github.com/users/bmcmahen","html_url":"https://github.com/bmcmahen","followers_url":"https://api.github.com/users/bmcmahen/followers","following_url":"https://api.github.com/users/bmcmahen/following{/other_user}","gists_url":"https://api.github.com/users/bmcmahen/gists{/gist_id}","starred_url":"https://api.github.com/users/bmcmahen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmcmahen/subscriptions","organizations_url":"https://api.github.com/users/bmcmahen/orgs","repos_url":"https://api.github.com/users/bmcmahen/repos","events_url":"https://api.github.com/users/bmcmahen/events{/privacy}","received_events_url":"https://api.github.com/users/bmcmahen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/react-native/labels/packager","name":"packager","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-03-28T17:21:21Z","updated_at":"2015-03-29T07:12:30Z","closed_at":null,"body":"I've come across a few npm modules that don't appear to work correctly. Notably, [event-emitter](https://www.npmjs.com/package/event-emitter) has issues importing `es5-ext/object/assign`, and [debug](https://github.com/visionmedia/debug) doesn't appear to work with the chrome dev-tools. I suspect that small alterations to the module themselves (to take into account yet another working environment) may be necessary, but there could also be issues with the packager, too. "},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/87364894","html_url":"https://github.com/facebook/react-native/issues/406#issuecomment-87364894","issue_url":"https://api.github.com/repos/facebook/react-native/issues/406","id":87364894,"user":{"login":"siuying","id":8608,"avatar_url":"https://avatars.githubusercontent.com/u/8608?v=3","gravatar_id":"","url":"https://api.github.com/users/siuying","html_url":"https://github.com/siuying","followers_url":"https://api.github.com/users/siuying/followers","following_url":"https://api.github.com/users/siuying/following{/other_user}","gists_url":"https://api.github.com/users/siuying/gists{/gist_id}","starred_url":"https://api.github.com/users/siuying/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siuying/subscriptions","organizations_url":"https://api.github.com/users/siuying/orgs","repos_url":"https://api.github.com/users/siuying/repos","events_url":"https://api.github.com/users/siuying/events{/privacy}","received_events_url":"https://api.github.com/users/siuying/received_events","type":"User","site_admin":false},"created_at":"2015-03-29T07:12:30Z","updated_at":"2015-03-29T07:12:30Z","body":"package [he](https://github.com/mathiasbynens/he) shows same issue.\r\n\r\n```javascript\r\n\t// Some AMD build optimizers, like r.js, check for specific condition patterns\r\n\t// like the following:\r\n\tif (\r\n\t\ttypeof define == 'function' &&\r\n\t\ttypeof define.amd == 'object' &&\r\n\t\tdefine.amd\r\n\t) {\r\n\t\tdefine(function() {\r\n\t\t\treturn he;\r\n\t\t});\r\n\t}\telse if (freeExports && !freeExports.nodeType) {\r\n\t\tif (freeModule) { // in Node.js or RingoJS v0.8.0+\r\n\t\t\tfreeModule.exports = he;\r\n\t\t} else { // in Narwhal or RingoJS v0.7.0-\r\n\t\t\tfor (var key in he) {\r\n\t\t\t\thas(he, key) && (freeExports[key] = he[key]);\r\n\t\t\t}\r\n\t\t}\r\n\t} else { // in Rhino or a web browser\r\n\t\troot.he = he;\r\n\t}\r\n```\r\n"}}