{"action":"closed","issue":{"url":"https://api.github.com/repos/halt-hammerzeit/universal-webpack/issues/15","repository_url":"https://api.github.com/repos/halt-hammerzeit/universal-webpack","labels_url":"https://api.github.com/repos/halt-hammerzeit/universal-webpack/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/halt-hammerzeit/universal-webpack/issues/15/comments","events_url":"https://api.github.com/repos/halt-hammerzeit/universal-webpack/issues/15/events","html_url":"https://github.com/halt-hammerzeit/universal-webpack/issues/15","id":164665221,"number":15,"title":"Optional jsdom","user":{"login":"aight8","id":1138623,"avatar_url":"https://avatars.githubusercontent.com/u/1138623?v=3","gravatar_id":"","url":"https://api.github.com/users/aight8","html_url":"https://github.com/aight8","followers_url":"https://api.github.com/users/aight8/followers","following_url":"https://api.github.com/users/aight8/following{/other_user}","gists_url":"https://api.github.com/users/aight8/gists{/gist_id}","starred_url":"https://api.github.com/users/aight8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aight8/subscriptions","organizations_url":"https://api.github.com/users/aight8/orgs","repos_url":"https://api.github.com/users/aight8/repos","events_url":"https://api.github.com/users/aight8/events{/privacy}","received_events_url":"https://api.github.com/users/aight8/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-09T12:34:21Z","updated_at":"2016-07-09T12:41:05Z","closed_at":"2016-07-09T12:41:05Z","body":"Lot of projects use the window object to add events etc. to the DOM. When we have an option in the universal settings like ```\"jsdom\": true``` it could mimic the DOM in a certain way (it's then a fake DOM) to prevent errors.\r\n\r\n```JS\r\nvar jsdom = require(\"jsdom\").jsdom;\r\nvar doc = jsdom(markup, options);\r\nvar window = doc.defaultView;\r\n```\r\n\r\nhttps://github.com/tmpvar/jsdom\r\n\r\nThe document object holds en empty document of course but when it's available i prevents from errors.\r\n\r\nWhen you don't want to implement this in this library maybe an hint would be nice to the users. Because it makes the development in react easier without caring about the availability of the window/document object etc."}}
{"actor":{"display_login":"halt-hammerzeit"}}