{"action":"created","issue":{"url":"https://api.github.com/repos/milankinen/livereactload/issues/7","labels_url":"https://api.github.com/repos/milankinen/livereactload/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/milankinen/livereactload/issues/7/comments","events_url":"https://api.github.com/repos/milankinen/livereactload/issues/7/events","html_url":"https://github.com/milankinen/livereactload/issues/7","id":65102858,"number":7,"title":"Fix React injecting to the global modules","user":{"login":"milankinen","id":1080706,"avatar_url":"https://avatars.githubusercontent.com/u/1080706?v=3","gravatar_id":"","url":"https://api.github.com/users/milankinen","html_url":"https://github.com/milankinen","followers_url":"https://api.github.com/users/milankinen/followers","following_url":"https://api.github.com/users/milankinen/following{/other_user}","gists_url":"https://api.github.com/users/milankinen/gists{/gist_id}","starred_url":"https://api.github.com/users/milankinen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milankinen/subscriptions","organizations_url":"https://api.github.com/users/milankinen/orgs","repos_url":"https://api.github.com/users/milankinen/repos","events_url":"https://api.github.com/users/milankinen/events{/privacy}","received_events_url":"https://api.github.com/users/milankinen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/milankinen/livereactload/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-29T22:28:35Z","updated_at":"2015-03-31T20:48:28Z","closed_at":null,"body":"When using global modules that use React as a peer dependency (for example `react-bootstrap`), they are broken after the first reload.\r\n\r\nThe possible reason is that LiveReacload trasform function does not apply to the global modules, thus they get the fresh copy of React after each reload => React instances won't match anymore => JavaScript errors occur.\r\n\r\nPossible fix: transform function must be defined as global (`-g` instead of `-t`). However, the current logic does not support global transformation (you'll get other errors). Transform logic must be modified so that it can be used as a global transform."},"comment":{"url":"https://api.github.com/repos/milankinen/livereactload/issues/comments/88239590","html_url":"https://github.com/milankinen/livereactload/issues/7#issuecomment-88239590","issue_url":"https://api.github.com/repos/milankinen/livereactload/issues/7","id":88239590,"user":{"login":"milankinen","id":1080706,"avatar_url":"https://avatars.githubusercontent.com/u/1080706?v=3","gravatar_id":"","url":"https://api.github.com/users/milankinen","html_url":"https://github.com/milankinen","followers_url":"https://api.github.com/users/milankinen/followers","following_url":"https://api.github.com/users/milankinen/following{/other_user}","gists_url":"https://api.github.com/users/milankinen/gists{/gist_id}","starred_url":"https://api.github.com/users/milankinen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milankinen/subscriptions","organizations_url":"https://api.github.com/users/milankinen/orgs","repos_url":"https://api.github.com/users/milankinen/repos","events_url":"https://api.github.com/users/milankinen/events{/privacy}","received_events_url":"https://api.github.com/users/milankinen/received_events","type":"User","site_admin":false},"created_at":"2015-03-31T20:48:28Z","updated_at":"2015-03-31T20:48:28Z","body":"Fixed in version 0.2.4"}}