{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel/issues/1366","labels_url":"https://api.github.com/repos/babel/babel/issues/1366/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/1366/comments","events_url":"https://api.github.com/repos/babel/babel/issues/1366/events","html_url":"https://github.com/babel/babel/issues/1366","id":71475497,"number":1366,"title":"False positive in React validation","user":{"login":"mjohnston","id":331053,"avatar_url":"https://avatars.githubusercontent.com/u/331053?v=3","gravatar_id":"","url":"https://api.github.com/users/mjohnston","html_url":"https://github.com/mjohnston","followers_url":"https://api.github.com/users/mjohnston/followers","following_url":"https://api.github.com/users/mjohnston/following{/other_user}","gists_url":"https://api.github.com/users/mjohnston/gists{/gist_id}","starred_url":"https://api.github.com/users/mjohnston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjohnston/subscriptions","organizations_url":"https://api.github.com/users/mjohnston/orgs","repos_url":"https://api.github.com/users/mjohnston/repos","events_url":"https://api.github.com/users/mjohnston/events{/privacy}","received_events_url":"https://api.github.com/users/mjohnston/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-28T04:32:43Z","updated_at":"2015-04-28T04:54:21Z","closed_at":"2015-04-28T04:54:21Z","body":"The React validator throws an error when you try to `require(\"React\")`: https://github.com/babel/babel/blob/master/src/babel/transformation/transformers/validation/react.js#L12\r\n\r\nHowever, there is a legitimate use case for the uppercase version when interacting with React Native code. They use a custom module format that is file-system independent so `require(\"React\")` is a valid relative path. https://github.com/facebook/react-native/tree/master/packager/react-packager/src/DependencyResolver/haste/DependencyGraph\r\n\r\nIs there a way to tell Babel to skip this validation?"},"comment":{"url":"https://api.github.com/repos/babel/babel/issues/comments/96907920","html_url":"https://github.com/babel/babel/issues/1366#issuecomment-96907920","issue_url":"https://api.github.com/repos/babel/babel/issues/1366","id":96907920,"user":{"login":"mjohnston","id":331053,"avatar_url":"https://avatars.githubusercontent.com/u/331053?v=3","gravatar_id":"","url":"https://api.github.com/users/mjohnston","html_url":"https://github.com/mjohnston","followers_url":"https://api.github.com/users/mjohnston/followers","following_url":"https://api.github.com/users/mjohnston/following{/other_user}","gists_url":"https://api.github.com/users/mjohnston/gists{/gist_id}","starred_url":"https://api.github.com/users/mjohnston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjohnston/subscriptions","organizations_url":"https://api.github.com/users/mjohnston/orgs","repos_url":"https://api.github.com/users/mjohnston/repos","events_url":"https://api.github.com/users/mjohnston/events{/privacy}","received_events_url":"https://api.github.com/users/mjohnston/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T04:54:21Z","updated_at":"2015-04-28T04:54:21Z","body":"Ah, missed that! Thanks @fkling "}}