{"action":"created","issue":{"url":"https://api.github.com/repos/SupremeTechnopriest/react-idle-timer/issues/7","repository_url":"https://api.github.com/repos/SupremeTechnopriest/react-idle-timer","labels_url":"https://api.github.com/repos/SupremeTechnopriest/react-idle-timer/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/SupremeTechnopriest/react-idle-timer/issues/7/comments","events_url":"https://api.github.com/repos/SupremeTechnopriest/react-idle-timer/issues/7/events","html_url":"https://github.com/SupremeTechnopriest/react-idle-timer/issues/7","id":143085567,"number":7,"title":"support serverside","user":{"login":"benmonro","id":399236,"avatar_url":"https://avatars3.githubusercontent.com/u/399236?v=4","gravatar_id":"","url":"https://api.github.com/users/benmonro","html_url":"https://github.com/benmonro","followers_url":"https://api.github.com/users/benmonro/followers","following_url":"https://api.github.com/users/benmonro/following{/other_user}","gists_url":"https://api.github.com/users/benmonro/gists{/gist_id}","starred_url":"https://api.github.com/users/benmonro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benmonro/subscriptions","organizations_url":"https://api.github.com/users/benmonro/orgs","repos_url":"https://api.github.com/users/benmonro/repos","events_url":"https://api.github.com/users/benmonro/events{/privacy}","received_events_url":"https://api.github.com/users/benmonro/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":22,"created_at":"2016-03-23T21:33:26Z","updated_at":"2017-07-24T23:13:29Z","closed_at":"2017-07-24T23:13:29Z","body":"I'm using webpack for bundling.  I only use this library in my client but in order to use it in webpack I have to use some code like this:\n\n`if (canUseDOM && enabled) {\n            let Timer = require(\"react-idle-timer\").default;`\n\nthe reason for this is that if I try to use an import I'll get a build time error:\n\n```\nReferenceError: document is not defined\n    at Object.<anonymous> (/Users/bmonro/Documents/Code/nui-redux/ext/@concur/nui-shell/node_modules/react-idle-timer/build/index.js:303:12)\n    at Module._compile (module.js:435:26)\n    at Object.Module._extensions..js (module.js:442:10)\n    at Module.load (module.js:356:32)\n    at Function.Module._load (module.js:311:12)\n    at Module.require (module.js:366:17)\n    at require (module.js:385:17)\n    at Object.<anonymous> (/Users/bmonro/Documents/Code/nui-redux/ext/@concur/nui-shell/lib/components/IdleTimer.js:15:23)\n    at Module._compile (module.js:435:26)\n    at Object.Module._extensions..js (module.js:442:10)\n```\n\nit would be nice if I didn't have to do this and could instead do a normal es6 style import.\n"},"comment":{"url":"https://api.github.com/repos/SupremeTechnopriest/react-idle-timer/issues/comments/317581828","html_url":"https://github.com/SupremeTechnopriest/react-idle-timer/issues/7#issuecomment-317581828","issue_url":"https://api.github.com/repos/SupremeTechnopriest/react-idle-timer/issues/7","id":317581828,"user":{"login":"SupremeTechnopriest","id":2261598,"avatar_url":"https://avatars1.githubusercontent.com/u/2261598?v=4","gravatar_id":"","url":"https://api.github.com/users/SupremeTechnopriest","html_url":"https://github.com/SupremeTechnopriest","followers_url":"https://api.github.com/users/SupremeTechnopriest/followers","following_url":"https://api.github.com/users/SupremeTechnopriest/following{/other_user}","gists_url":"https://api.github.com/users/SupremeTechnopriest/gists{/gist_id}","starred_url":"https://api.github.com/users/SupremeTechnopriest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SupremeTechnopriest/subscriptions","organizations_url":"https://api.github.com/users/SupremeTechnopriest/orgs","repos_url":"https://api.github.com/users/SupremeTechnopriest/repos","events_url":"https://api.github.com/users/SupremeTechnopriest/events{/privacy}","received_events_url":"https://api.github.com/users/SupremeTechnopriest/received_events","type":"User","site_admin":false},"created_at":"2017-07-24T23:13:29Z","updated_at":"2017-07-24T23:13:29Z","body":"Version `1.5.0` released to npm!  Thanks for your contribution!"}}
{"actor":{"display_login":"SupremeTechnopriest"}}