{"action":"opened","issue":{"url":"https://api.github.com/repos/gcanti/tcomb-form-native/issues/23","labels_url":"https://api.github.com/repos/gcanti/tcomb-form-native/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/gcanti/tcomb-form-native/issues/23/comments","events_url":"https://api.github.com/repos/gcanti/tcomb-form-native/issues/23/events","html_url":"https://github.com/gcanti/tcomb-form-native/issues/23","id":86934297,"number":23,"title":"integration with webpack","user":{"login":"abhishiv","id":37350,"avatar_url":"https://avatars.githubusercontent.com/u/37350?v=3","gravatar_id":"","url":"https://api.github.com/users/abhishiv","html_url":"https://github.com/abhishiv","followers_url":"https://api.github.com/users/abhishiv/followers","following_url":"https://api.github.com/users/abhishiv/following{/other_user}","gists_url":"https://api.github.com/users/abhishiv/gists{/gist_id}","starred_url":"https://api.github.com/users/abhishiv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abhishiv/subscriptions","organizations_url":"https://api.github.com/users/abhishiv/orgs","repos_url":"https://api.github.com/users/abhishiv/repos","events_url":"https://api.github.com/users/abhishiv/events{/privacy}","received_events_url":"https://api.github.com/users/abhishiv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-10T11:25:52Z","updated_at":"2015-06-10T11:25:52Z","closed_at":null,"body":"From this file: https://github.com/gcanti/tcomb-form-native/blob/master/lib/util/React.js\r\n\r\n```\r\nvar React;\r\ntry {\r\n  React = require.call(this, 'react');\r\n} catch(e) {\r\n  React = require('react-native');\r\n}\r\nmodule.exports = React;\r\n```\r\n\r\nThis results in the following error while using webpack (via mjohnston/react-native-webpack-server), \r\n\r\n```\r\nWARNING in ./~/tcomb-form-native/lib/util/React.js\r\nCritical dependencies:\r\n12:10-17 require function is used in a way in which dependencies cannot be statically extracted\r\n @ ./~/tcomb-form-native/lib/util/React.js 12:10-17\r\n```\r\n\r\nI'm not really aware of another solution, but maybe once facebook/react-native#1331 is implemented?"}}